11 2018 档案
摘要:created(){ this.changfouce(); }, methods: { //在vue生命周期的created()钩子函数进行的DOM操作要放在Vue.nextTick()的回调函数中, //因为created()钩子函数执行的时候DOM并未进行任何渲染,而此时进行DOM操作是徒劳的,所以此处一定要将DOM操作的JS代码放进Vue.nextTick...
阅读全文
摘要:1.禁用文本框的onkeydown事件 2.改造,可以使用ctrl+v document.getElementById('demo').onkeydown = function(event) { var evt = event || window.event; console.log(evt.keyCode) if (evt.ctrlKey && evt....
阅读全文
摘要:<template> <div class="pos-right"> <div class="tab-wrap"> <input type="radio" id="tab1" name="tabGroup1" class="tab" checked> <label class="lable1" fo
阅读全文
摘要:<template> <div class="bottom"> <div class="bottom_button iconfont icon-iconset0281" @click="upKeyboard"><label class="lb iconfont icon-010yiwen"></la
阅读全文
摘要:logout() { this.$confirm("你确定退出吗?", "提示:", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(x => { localStorage.removeItem("t...
阅读全文
摘要:! @ # $ % ^ & * ( ) { } ...
阅读全文
摘要:! @ # $ % ^ & * ( ) { } ...
阅读全文
摘要:<template> <div class="pos-frame"> <div class="pos h100"> <div class="pos-right"> <div class="tab-wrap"> <input type="radio" id="tab1" name="tabGroup1
阅读全文
摘要:<template> <div id="app"> <h1>父组件</h1> <textarea type="text" v-model="keyboards"></textarea> <keyboard v-on:updatekey="GetKeyVal"></keyboard> </div> <
阅读全文
摘要:<template> <card-layout :title="L('Users')" :actions="actions" @click="handleClick"> <el-table :data="tableData4.slice((currentPage-1)*pagesize,curren
阅读全文
摘要:1.npm install --global @vue/cli 2.npm install -g @vue/cli-init 3.vue init webpack my-project
阅读全文
摘要:npm install chromedriver -g
阅读全文
摘要:1.npm install vue-i18n 2.在 main.js 中引入 vue-i18n import VueI18n from 'vue-i18n' Vue.use(VueI18n) 3.在main.js中准备翻译 const messages = { zh: { message: { name:'李四' } }...
阅读全文
摘要:if (!this.surname) { this.$createDialog({ type: "alert", icon: "cubeic-close", showClose: true, content: this.$t("message.errInputSurname"), ...
阅读全文
摘要:getage() { var birthdays = new Date(this.birthday.replace(/-/g, "/")); var d = new Date(); var age = d.getFullYear() - birthdays.getFullYear() - (d.getMo...
阅读全文
摘要:1、安装sass的依赖包 npm install --save-dev sass-loader //sass-loader依赖于node-sass npm install --save-dev node-sass 2、在build文件夹下的webpack.base.conf.js的rules里面添加配置 { test: /\.sass$/, loaders: ['style', '...
阅读全文
摘要:https://segmentfault.com/a/1190000012568480
阅读全文