随笔 - 156  文章 - 0  评论 - 35  阅读 - 72万 
07 2017 档案
前端编程tips
摘要:1.ts less 网上搜视频教程,不用太复杂的,短短几分钟视频基本就对其入门了,比自己搜官网学习更方便。 常用的ts技术:let name:string=""; let obj:ClassName={}; let array:class[]=[]; as HTMLDivElement, inter 阅读全文
posted @ 2017-07-13 12:51 Yogurshine 阅读(286) 评论(0) 推荐(0) 编辑
扁平数组构建DOM树
摘要:if (parentOrg) { if (parentOrg.children) { parentOrg.children.push(org); } else { parentOrg.children = []; parentOrg.children.push(org); } } else { r. 阅读全文
posted @ 2017-07-10 18:09 Yogurshine 阅读(443) 评论(0) 推荐(0) 编辑
Code Review
摘要:1.判断两个空数组相等 (Array.isArray(oldValue) && Array.isArray(newValue)) { if (Utility.ArrayIsEqual(oldValue, newValue)) { continue; } } static ArrayIsEqual(v 阅读全文
posted @ 2017-07-10 17:41 Yogurshine 阅读(161) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示