摘要: 转:https://www.cnblogs.com/KevinTseng/p/12427486.html 原因分析 原因1:存在this指向问题,没有真正更新到data 原因2:Vue不能检测对象属性的添加或删除 原因3:更新的层级太深 解决方法 处理原因3:建议对象层级设计时尽量扁平化 方法一:使 阅读全文
posted @ 2020-03-13 17:29 wxid_m2pywu7fxu1f 阅读(294) 评论(0) 推荐(0) 编辑
摘要: js 正则表达式RegExp 正则表达式模式: g:表示全局模式,即模式将被用于整个字符串,而非发现第一个匹配项时立即停止; i:表示不区分大小写,忽略大小写; m:表示多行模式; 所有元字符都必须转义,元字符:“(”、 “)”、 “[”、 “]”、 “{”、 “}”、 “\”、 “^”、 “$”、 阅读全文
posted @ 2020-03-13 14:36 wxid_m2pywu7fxu1f 阅读(204) 评论(0) 推荐(0) 编辑
摘要: vscode高效开发插件 1.暗色主题One Dark Pro 2.Babel ES6/ES7 3.Chinese (Simplified) Language Pack for Visual Studio Code4.Code Runnerformulahendry.code-runner5.CSS 阅读全文
posted @ 2020-02-27 12:29 wxid_m2pywu7fxu1f 阅读(395) 评论(0) 推荐(0) 编辑
摘要: iview Modal 确定按钮loading let _this = this setTimeout(() => { _this.btnLoading = false; _this.$nextTick(() => {_this.btnLoading = true;}); }, 100) 2 thi 阅读全文
posted @ 2020-02-27 12:27 wxid_m2pywu7fxu1f 阅读(1261) 评论(0) 推荐(0) 编辑
摘要: ①splice(0) 的妙用:splice() 会修改原数组,而 splice(0) 会把原数组清空。把数组A的东西拷贝到数组B:很简单,用 slice() 就可以了。slice() 不会改变原数组。 var a = [1,2,3,4,5] ,b = a.slice(); //=> a = [1,2 阅读全文
posted @ 2020-02-13 16:28 wxid_m2pywu7fxu1f 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 子组件生命周期 问:子组件的生命周期,比父组件慢还是比父组件快? 答:父组件先于子组件created,而子组件先于父组件mounted。 Vue生命周期中mounted和created的区别 载:https://blog.csdn.net/xinghuowuzhao/article/details/ 阅读全文
posted @ 2020-01-18 14:07 wxid_m2pywu7fxu1f 阅读(292) 评论(0) 推荐(0) 编辑
摘要: node中path.resolve()用法 1、不带参数时 path.resolve() 返回的是当前的文件的绝对路径/Users/xxxx/ 2、带不是/开头的参数 path.resolve('a') 返回的是当前绝对路径拼接现在的参数/Users/xxxx/a path.resolve('a', 阅读全文
posted @ 2020-01-10 16:21 wxid_m2pywu7fxu1f 阅读(466) 评论(0) 推荐(0) 编辑
摘要: iview表单验证。 自定义规则校验 data () { const validateChecker = (rule, value, callback) => { if (!this.reportObj.checker) { callback('检验员不能为空'); } else { const l 阅读全文
posted @ 2020-01-10 14:40 wxid_m2pywu7fxu1f 阅读(702) 评论(0) 推荐(0) 编辑
摘要: npm install报错 end. 阅读全文
posted @ 2020-01-08 16:00 wxid_m2pywu7fxu1f 阅读(69) 评论(0) 推荐(0) 编辑
摘要: npm install失败 代理问题 原因:npm配置了代理 使用"npm config list -l"命令查看npm配置 其中有这条配置https-proxy = "http://proxy-server-address:8080/" 使用"npm config delete https-pro 阅读全文
posted @ 2020-01-08 15:51 wxid_m2pywu7fxu1f 阅读(773) 评论(0) 推荐(0) 编辑