2019年1月31日

摘要: methods:{ inputBlur () { // window.scroll(0, 0); setTimeout(() => { // alert(1); if (document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === '... 阅读全文
posted @ 2019-01-31 14:28 执着慕晚的流年 阅读(1962) 评论(0) 推荐(0) 编辑

2019年1月30日

摘要: 封装一个子组件: 父组件引用并传参: 阅读全文
posted @ 2019-01-30 11:49 执着慕晚的流年 阅读(1340) 评论(0) 推荐(0) 编辑

2018年12月27日

摘要: 看图说话 HTML: JS: 1) 2) 3) 有更好的方法可以相互学习。 阅读全文
posted @ 2018-12-27 15:35 执着慕晚的流年 阅读(6375) 评论(0) 推荐(0) 编辑

2018年12月12日

摘要: 如图所示: 画布组件:dashboard.vue 父组件引用画布组件 阅读全文
posted @ 2018-12-12 14:49 执着慕晚的流年 阅读(1038) 评论(0) 推荐(0) 编辑

2018年11月30日

摘要: 例:小数0.1~0.24之间。const reg = /^[0]+(\.[1-2][0-4]{1,2})?$/; reg.test(0.2) 阅读全文
posted @ 2018-11-30 19:56 执着慕晚的流年 阅读(1028) 评论(0) 推荐(0) 编辑

2018年10月17日

摘要: //写入一个js文件 在组件中引用并传值 例: 阅读全文
posted @ 2018-10-17 10:44 执着慕晚的流年 阅读(1137) 评论(0) 推荐(0) 编辑
 
摘要: data(){ return:{ bak: require('引用图片'), } } methods:{ imgLoadError () { this.$ajax.$post("接口", { //this.$ajax.$post 为自己封装的请求方式 errorType: ''//反馈类型 }, msg => { }); } }... 阅读全文
posted @ 2018-10-17 10:28 执着慕晚的流年 阅读(3455) 评论(0) 推荐(0) 编辑
 
摘要: html: <span v-for="i in numArr">{{i}}</span> 效果: 阅读全文
posted @ 2018-10-17 10:19 执着慕晚的流年 阅读(5773) 评论(0) 推荐(0) 编辑

2018年9月14日

摘要: html: js: 阅读全文
posted @ 2018-09-14 14:32 执着慕晚的流年 阅读(1163) 评论(0) 推荐(0) 编辑

2018年9月13日

摘要: 解决方法: 如图所示: 阅读全文
posted @ 2018-09-13 11:14 执着慕晚的流年 阅读(824) 评论(0) 推荐(0) 编辑