Ember.js 1.0 RC3 发布,JavaScript 框架

Ember.js 1.0RC3版本已发布,相较于RC2版本,RC3在性能上有所提升,优化了相邻子视图的批量插入操作、实现了对象删除的异步处理并减少了视图渲染过程中分配的对象数量。

Ember是一个雄心勃勃的Web应用程序,消除了样板,并提供了一个标准的应用程序架构的JavaScript框架。

Ember.js 1.0 RC3 发布了,比起 RC2 版本,RC3 在性能又进一步提升,同时还包含如下改进:

  • When adjacent child views are scheduled for insertion they are are now batched together, and inserted together rather then one at a time.
  • Object deletion is now async, this prevents un-needed churn when destroying large interconnected object graphs.
  • The number of objects allocated during view rendering has been cut down.

示例代码:

01MyApp.president = Ember.Object.create({
02  firstName: "Barack",
03  lastName: "Obama",
04 
05  fullName: function() {
06    return this.get('firstName') + ' ' + this.get('lastName');
07 
08  // Tell Ember that this computed property depends on firstName
09  // and lastName
10  }.property('firstName', 'lastName')
11});

转载于:https://www.cnblogs.com/shihao/archive/2013/04/22/3036596.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值