zoukankan      html  css  js  c++  java
  • Ember.js 1.0 RC3 发布,JavaScript 框架

    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.

    示例代码:

    01 MyApp.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 });
  • 相关阅读:
    函数嵌套
    函数对象
    可变长参数
    函数的参数
    函数的调用
    函数的返回值
    定义函数的三种形式
    函数的定义
    SQLAlchemy
    Flask总结完整版
  • 原文地址:https://www.cnblogs.com/shihao/p/3036596.html
Copyright © 2011-2022 走看看