上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 63 下一页
摘要: 1、data中声明分页所需数据: queryInfo: { total: 0, query: '', currentPage: 1, // 当前页数 pageSize: 10 // 当前每页显示多少条数据 } 2、引入分页组件: <el-pagination @size-change="handle 阅读全文
posted @ 2020-05-28 16:59 吴小明- 阅读(586) 评论(0) 推荐(0) 编辑
摘要: beforeAvatarUpload(file) { let FileExt = file.name.replace(/.+\./, "").toLowerCase() let flag = ['doc','docx','xls','xlsx'].includes(FileExt) const is 阅读全文
posted @ 2020-05-27 14:49 吴小明- 阅读(1198) 评论(0) 推荐(0) 编辑
摘要: 效果: 使用: 1、下载插件:npm install v-viewer 2、在需要使用v-viewer的页面引入 import 'viewerjs/dist/viewer.css' import Viewer from 'v-viewer' import Vue from 'vue' Vue.use 阅读全文
posted @ 2020-05-22 16:06 吴小明- 阅读(1816) 评论(0) 推荐(0) 编辑
摘要: 更换版本前需要将当前版本删除,再安装新版本。 升级版本: npm uninstall vue-cli -g npm install -g @vue/cli vue -V 回退版本: npm uninstall -g @vue/cli npm install vue-cli -g vue -V 如果有 阅读全文
posted @ 2020-05-14 09:02 吴小明- 阅读(181) 评论(0) 推荐(0) 编辑
摘要: LSH:找到某个变量的值,如果查找的目的是对变量进行赋值,就会使用LSH查找。 RSH:找到变量的容器,如果查找的目的是获取变量的值,就会使用RSH查找。 function foo(a){ console.log(a) } foo(2) // 2 对foo函数的调用执行了RSH查找,还有一个隐式的a 阅读全文
posted @ 2020-05-11 00:25 吴小明- 阅读(500) 评论(0) 推荐(0) 编辑
摘要: Object.defineProperty() 未完待续。。。。。。 阅读全文
posted @ 2020-05-10 22:19 吴小明- 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 遍历数组的方法: 1、for循环 let arr = [1, 2, 3, 4, 5]; for (let i = 0; i < arr.length; i++) { console.log(i, arr[i]); } 2、forEach() ES5 let arr=[1, 2, 3, 4, 5];a 阅读全文
posted @ 2020-05-09 16:39 吴小明- 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-08 17:10 吴小明- 阅读(217) 评论(0) 推荐(0) 编辑
摘要: axios: 阅读全文
posted @ 2020-05-07 17:59 吴小明- 阅读(113) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 63 下一页