typescript
印第安米饭
这个作者很懒,什么都没留下…
展开
-
webpack打包typescript在Checking started in a separate process...等待时间过长的解决方案
我在根目录写了tsconfig.json { "compilerOptions": { "outDir": "./dist/", "sourceMap": true, "noImplicitAny": true, "module": "commonJS", "target&原创 2018-12-02 01:47:20 · 701 阅读 · 0 评论 -
js 隐式转换(相等判断)规则
1、所有类型和布尔类型判断相等,布尔类型都会先转为数值类型(0和1); 2、对象和非布尔值的普通类型比,对象会拆封或转为字符串; 3、字符串和数字比较会把字符串转换为数字; 4、null == undefined ,其他都不相等 5、[] == false; -> [] == 0 // false [] == '' //true [0] == 0 // true...原创 2019-07-04 18:28:49 · 420 阅读 · 0 评论