Fork me on GitHub

11 2018 档案

摘要:created(){ this.changfouce(); }, methods: { //在vue生命周期的created()钩子函数进行的DOM操作要放在Vue.nextTick()的回调函数中, //因为created()钩子函数执行的时候DOM并未进行任何渲染,而此时进行DOM操作是徒劳的,所以此处一定要将DOM操作的JS代码放进Vue.nextTick... 阅读全文
posted @ 2018-11-30 14:12 欢欢11 阅读(16357) 评论(3) 推荐(1) 编辑
摘要:1.禁用文本框的onkeydown事件 2.改造,可以使用ctrl+v document.getElementById('demo').onkeydown = function(event) { var evt = event || window.event; console.log(evt.keyCode) if (evt.ctrlKey && evt.... 阅读全文
posted @ 2018-11-30 11:04 欢欢11 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-27 14:05 欢欢11 阅读(128) 评论(0) 推荐(0) 编辑
摘要:1 2 3 4 5 6 7 8 9 0 . ... 阅读全文
posted @ 2018-11-21 15:30 欢欢11 阅读(92) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="pos-right"> <div class="tab-wrap"> <input type="radio" id="tab1" name="tabGroup1" class="tab" checked> <label class="lable1" fo 阅读全文
posted @ 2018-11-21 10:20 欢欢11 阅读(90) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="bottom"> <div class="bottom_button iconfont icon-iconset0281" @click="upKeyboard"><label class="lb iconfont icon-010yiwen"></la 阅读全文
posted @ 2018-11-21 09:39 欢欢11 阅读(339) 评论(0) 推荐(0) 编辑
摘要:logout() { this.$confirm("你确定退出吗?", "提示:", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(x => { localStorage.removeItem("t... 阅读全文
posted @ 2018-11-20 15:50 欢欢11 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-19 16:17 欢欢11 阅读(110) 评论(0) 推荐(0) 编辑
摘要:! @ # $ % ^ & * ( ) { } ... 阅读全文
posted @ 2018-11-19 14:36 欢欢11 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-17 13:11 欢欢11 阅读(137) 评论(0) 推荐(0) 编辑
摘要:! @ # $ % ^ & * ( ) { } ... 阅读全文
posted @ 2018-11-16 17:06 欢欢11 阅读(781) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="pos-frame"> <div class="pos h100"> <div class="pos-right"> <div class="tab-wrap"> <input type="radio" id="tab1" name="tabGroup1 阅读全文
posted @ 2018-11-09 15:05 欢欢11 阅读(949) 评论(0) 推荐(0) 编辑
摘要:<template> <div id="app"> <h1>父组件</h1> <textarea type="text" v-model="keyboards"></textarea> <keyboard v-on:updatekey="GetKeyVal"></keyboard> </div> < 阅读全文
posted @ 2018-11-08 15:12 欢欢11 阅读(2835) 评论(0) 推荐(0) 编辑
摘要:<template> <card-layout :title="L('Users')" :actions="actions" @click="handleClick"> <el-table :data="tableData4.slice((currentPage-1)*pagesize,curren 阅读全文
posted @ 2018-11-07 21:38 欢欢11 阅读(302) 评论(0) 推荐(0) 编辑
摘要:1.npm install --global @vue/cli 2.npm install -g @vue/cli-init 3.vue init webpack my-project 阅读全文
posted @ 2018-11-07 12:26 欢欢11 阅读(146) 评论(0) 推荐(0) 编辑
摘要:npm install chromedriver -g 阅读全文
posted @ 2018-11-07 10:13 欢欢11 阅读(396) 评论(0) 推荐(0) 编辑
摘要: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:'李四' } }... 阅读全文
posted @ 2018-11-07 09:18 欢欢11 阅读(203) 评论(0) 推荐(0) 编辑
摘要:if (!this.surname) { this.$createDialog({ type: "alert", icon: "cubeic-close", showClose: true, content: this.$t("message.errInputSurname"), ... 阅读全文
posted @ 2018-11-07 09:07 欢欢11 阅读(2703) 评论(0) 推荐(0) 编辑
摘要:getage() { var birthdays = new Date(this.birthday.replace(/-/g, "/")); var d = new Date(); var age = d.getFullYear() - birthdays.getFullYear() - (d.getMo... 阅读全文
posted @ 2018-11-07 09:05 欢欢11 阅读(4841) 评论(0) 推荐(0) 编辑
摘要: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', '... 阅读全文
posted @ 2018-11-05 17:13 欢欢11 阅读(168) 评论(0) 推荐(0) 编辑
摘要:https://segmentfault.com/a/1190000012568480 阅读全文
posted @ 2018-11-05 16:15 欢欢11 阅读(1729) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-05 09:33 欢欢11 阅读(90) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示