上一页 1 ··· 474 475 476 477 478 479 480 481 482 ··· 491 下一页
摘要: ControllerAs:Use thecontrollerAssyntax always as it aids in nested scoping and controller instance reference.Bad: {{ someObject }}Good: {{ main.some... 阅读全文
posted @ 2014-11-25 16:40 Zhentiw 阅读(349) 评论(0) 推荐(0)
摘要: Also read:http://www.cnblogs.com/Answer1215/p/3941966.htmlUsing ngAnimate://!annotate="YourApp" Your AngularJS Module|Replace this or ngModule with th... 阅读全文
posted @ 2014-11-24 21:55 Zhentiw 阅读(508) 评论(0) 推荐(0)
摘要: Using for..of statement:function* greeting(){ console.log(`Generators are "lazy"`); yield "How"; console.log(`I'm not called until the second... 阅读全文
posted @ 2014-11-23 21:37 Zhentiw 阅读(167) 评论(0) 推荐(0)
摘要: Generators in ECMAscript 6 are first-class coroutines that produce encapsulated suspended execution(暂停执行) contexts.Yield values and iterate over them ... 阅读全文
posted @ 2014-11-23 21:05 Zhentiw 阅读(376) 评论(0) 推荐(0)
摘要: The spread operator (...) allows you to "explode" an array into its individual elements.Spreate an array:console.log([1,2,3]); // [1, 2, 3] conso... 阅读全文
posted @ 2014-11-23 01:41 Zhentiw 阅读(466) 评论(0) 推荐(0)
摘要: Where destructuring in ES6 allows you to easily get properties out of an object, this shorthand property syntax allows you to easily push properties i... 阅读全文
posted @ 2014-11-23 01:30 Zhentiw 阅读(335) 评论(0) 推荐(0)
摘要: ECMAscript 6 lets us use string templates to gain a lot more control over strings in JavaScript.var salutation = "Hello";var place = "New York";var gr... 阅读全文
posted @ 2014-11-22 19:19 Zhentiw 阅读(228) 评论(0) 推荐(0)
摘要: $intervalprovides an excellent service for timed operations in your AngularJS apps. It has the advantage over setInterval in "normal" Javascript in th... 阅读全文
posted @ 2014-11-22 06:49 Zhentiw 阅读(2338) 评论(0) 推荐(0)
摘要: ES6 decided that Array Comprehensions will not included in this version, ES7 will include this. Therefore, only FireFox support this, you can test it ... 阅读全文
posted @ 2014-11-22 06:26 Zhentiw 阅读(306) 评论(0) 推荐(0)
摘要: Read More:http://es6.ruanyifeng.com/#docs/destructuringArray“模式匹配”,只要等号两边的模式相同,左边的变量就会被赋予对应的值:Exp 1:var [head, ...tail] = [1, 2, 3, 4];console.log(hea... 阅读全文
posted @ 2014-11-21 01:29 Zhentiw 阅读(258) 评论(0) 推荐(0)
上一页 1 ··· 474 475 476 477 478 479 480 481 482 ··· 491 下一页