随笔分类 - 《精通AngularJs》
从这本书上了解到的新知识,记录下来,以备查。(要看的书太多,要敲的代码太太多!以后不再面面俱到,逐行代码进行验证了【时间很宝贵】)。
摘要:filter用法比较灵活(也增加了较高的复杂度),单独列出。基本的用法:ng-repeat="item in items | filter:{name:keyword,done:false}" // 默认是and连接多个属性ng-repeat="item in items | filter:{$:k...
阅读全文
摘要:...等价于 ... {{item.a}} --------------- {{item.desc}}
阅读全文
摘要:var a = "123", b = 123; console.log(a === b && "相等" || "不相等"); // 等价于 a===b?"相等":"不相等" if(a===b) xx(); // 等价于:a===b && xx(); if(a!...
阅读全文
摘要:Secrect Won't show you my Secrects! / {{crumb.name}} {{crumb.name}} {{user.name}} ...
阅读全文