发布于 2015-02-09 00:17:31 | 141 次阅读 | 评论: 0 | 来源: 网友投递
这里有新鲜出炉的Ember.JS中文指南,程序狗速度看过来!
Ember JavaScript的MVC框架
Ember.js是一个JavaScript的MVC框架,它由Apple前雇员创建的SproutCore 2.0改名进化而来
Ember.js是一个JavaScript的MVC框架,它由Apple前雇员创建的SproutCore 2.0改名进化而来
Ember是一个雄心勃勃的Web应用程序,消除了样板,并提供了一个标准的应用程序架构的JavaScript框架。
Ember.js 1.10.0/1.11 Beta 发布,Ember.js 1.10 版本包括至少 50 位贡献者,超过 553 个 commits。
Ember.js 1.10.0 最值得关注的是引入了 HTMLBars 模板引擎,其他新特性如下:HTMLBars 0.8.5;性能提升;Chained Else Blocks;Block Params;注入属性(使用两个 API 来管理依赖注入)。同时还有一些值得关注的废弃特性:
The explicit {{bind}}
helper has been deprecated. This helper has long been marked private, and was a legacy Sproutcore feature. This helper will be removed in Ember 1.11.
Quote-less outlet names are deprecated in 1.10. An example of this is{{outlet modal}}
, which should be re-written as {{outlet "modal"}}
. This ensures the outlet helper is consistent with others, where unquoted words are values and not string literals.
The beforeObserver
feature is deprecated in Ember 1.10. Before observers are rarely used, but introduce significant overhead to the observer system in general. For observer use that requires the previous value of a property be known, implementing a cache is simple and more efficient. Read more about how to do this in the deprecation guide.
Observing the childViews
array of a ContainerView
is deprecated.
Setting the childViews
property on a view definition is deprecated in 1.10.
Ember.js 1.11 beta 值得关注的特性有:绑定属性语法;Named Substates;Component Helper;还有一些值得关注的废弃特性:
The ObjectController
will be removed in Ember 2.0. In Ember 1.11, both explicitly using an ObjectController
and using the proxying behavior of a generated ObjectController
will raise deprecation warnings.
更多内容请看发行说明。