摘要: 实现逻辑 digital_root(16)=> 1 + 6=> 7 digital_root(942)=> 9 + 4 + 2=> 15 ...=> 1 + 5=> 6 digital_root(132189)=> 1 + 3 + 2 + 1 + 8 + 9=> 24 ...=> 2 + 4=> 6 阅读全文
posted @ 2019-01-10 18:21 -w-t-t 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 1.新建文件 要直接复制原来的文件夹,然后在终端执行npm run dev命令就会编译。这是在我看mpvue的demo的情况下,我是直接复制的,因为我新建的文件不会被编译到dist中,暂时只知道这一个方法。 这里说的不对,应该是在新建的时候一定要是index.vue还有mian.ts文件,因为ind 阅读全文
posted @ 2018-12-28 11:39 -w-t-t 阅读(1040) 评论(0) 推荐(0) 编辑
摘要: 定义:内存泄漏(Memory Leak)是指程序中己动态分配的堆内存由于某种原因程序未释放或无法释放,造成系统内存的浪费,导致程序运行速度减慢甚至系统崩溃等严重后果。 导致内存泄露的四种原因: 1.全局变量 2.console.log(this) 3.闭包 4.demo 阅读全文
posted @ 2018-12-27 19:22 -w-t-t 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1.字符串新特性: typescript代码: function text(temple, name, age) { console.log(temple); console.log(name); console.log(age);} var myname = "wang tingtign";var 阅读全文
posted @ 2018-12-11 18:57 -w-t-t 阅读(184) 评论(0) 推荐(0) 编辑