上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: 1.computed:{ computedAttr(){ return this.obj.xxxx//监听的属性 }, watch:{ computedAttr(){ //do something } } } 阅读全文
posted @ 2019-11-26 11:22 Tutao1995 阅读(4967) 评论(0) 推荐(0) 编辑
摘要: js版: <input oninput= (val) => {if(val.length>11)return val.sliece(0,11)}> vue版: <el-input v-on:input="watchInput" v-model='input'></el-input> data(){ 阅读全文
posted @ 2019-11-22 16:38 Tutao1995 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1.v-if v-show 2.在页面destroy或beforeRouterLeave时清除定时器跟事件的监听 3.图标采用雪碧图 4.路由采用懒加载 5.组件采用按需加载 6.v-for遍历时一定为item添加key值 7.打包的vendor.js过大,采用cdn加载不打包进入vendor.js 阅读全文
posted @ 2019-11-13 10:07 Tutao1995 阅读(149) 评论(0) 推荐(0) 编辑
摘要: var timer; window.onload = function(){ setT(); document.getElementById('btn').addEventListener('click',function(e){ clearInterval(timer); console.log( 阅读全文
posted @ 2019-11-08 15:58 Tutao1995 阅读(160) 评论(0) 推荐(0) 编辑
摘要: async function async1(){ console.log('async1 start') await async2() console.log('async1 end') } async function async2(){ console.log('async2') } conso 阅读全文
posted @ 2019-11-05 15:42 Tutao1995 阅读(377) 评论(0) 推荐(0) 编辑
摘要: //响应式系统 基本原理 /* Object.defineProperty( obj, prop, descriptor ) obj:目标对象· prop:需要操作的目标对象的属性名 descriptor:描述符 */ //cb function 用来模拟视图更新 调用它即表示试图更新 functi 阅读全文
posted @ 2019-10-22 16:55 Tutao1995 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1.vue 2.x 源码 学习 并作记录 半个月 汇总 总结一次 2.react + ts 学习并做记录 1个月 汇总 总结一次 3.flutter 学习 并作记录 2个月 汇总 总结一次 4.复习 红宝书 koa2 mongoose 1个月 汇总 总结一次 5.后端语言学习一门 暂定python 阅读全文
posted @ 2019-10-22 16:33 Tutao1995 阅读(90) 评论(0) 推荐(0) 编辑
摘要: https://files.alicdn.com/tpsservice/f91cbfb31d27f1a470c4ee138f9120b9.pdf?spm=a2c6h.12873639.0.0.416d5ef14Zjvoo&file=f91cbfb31d27f1a470c4ee138f9120b9.p 阅读全文
posted @ 2019-10-18 15:30 Tutao1995 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 样本上传 请选择APK文件,或点击上传 ... 阅读全文
posted @ 2019-10-18 14:11 Tutao1995 阅读(1377) 评论(0) 推荐(0) 编辑
摘要: // assist.js,部分代码省略 function typeOf(obj) { const toString = Object.prototype.toString; const map = { '[object Boolean]' : 'boolean', '[object Number]' : 'number', '[object String]'... 阅读全文
posted @ 2019-10-17 11:28 Tutao1995 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页