摘要:
import Vue from 'vue'; import VueI18n from 'vue-i18n'; import stroe from './store' import en from '../en'; import zh from '../cn'; Vue.use(VueI18n); c 阅读全文
摘要:
rules: { name: [ { required: true, validator: (rule, value, callback) => { if (!value) { return callback(new Error("请输入名称")); }else{ //这个else 一定要写, 要不 阅读全文
摘要:
image.vue <template> <transition name="viewer-fade"> <div ref="bigImg" class="bigImg" v-show="visible"> <div class="back_mask"></div> <span class="big 阅读全文
摘要:
<div> <img src='../../a.png'> </div> <style> img{ max-height: 100%; max-width: 100%; position: absolute; top: 50%; left: 50%; -webkit-transform: trans 阅读全文
摘要:
return createElement( 'h' + this.level, [ createElement('a', { attrs: { name: headingId, href: '#' + headingId }, style: { color: 'red', }, 'class': { 阅读全文
摘要:
//复制文本信息 copyContext(val){ const input = document.createElement('input') document.body.appendChild(input) input.setAttribute('value',val) input.select 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
摘要:
请求加入responseType = "blob"; —————————————————————————————————————— api.then(res =>{ //用来读取文件blob返回type为application/json的错误信息 if (res.response.type 'app 阅读全文
摘要:
dllalsdf(){ // 获取时间戳 let timestamp=new Date().getTime(); // 获取XMLHttpRequest let xmlResquest = new XMLHttpRequest(); // 发起请求 xmlResquest.open("POST",' 阅读全文
摘要:
import Vue from 'vue' import Vuex from 'vuex' import axaios from 'axios' import createPersistedState from "vuex-persistedstate" //将数据持久化, 此方法就是将store中 阅读全文