1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 RegularJS v0.4.0 发布,JavaScript MVC 框架 下载

本帖由 漂亮的石头2015-09-30 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,295
    赞:
    47
    RegularJS v0.4.0 发布,更新内容如下:


    1. r-component for dynamic component <r-component is={componentName} props.... />


    2. if Express is const, now regularjs will pass a value but not a Expression like in previous version. value = {1} , 1 will pass to directive.


    3. $watch now accept function for watch complex value

      this.$watch(function(){ return global.value}, function (gval, old_gval)) {

      })

    4. #list now support alternative syntax ( {#list list as item} {item.content} {#else} list is not exsits {/list})


    5. support track-by in list statement, performance is awesome now (http://leeluolee.github.io/js-repaint-perfs/).

      {#list list as item by item_index}
      // content here won't be destroy, only updating
      {/list}

    6. r-class r-style will add '{}' for you if you pass a String and missed '{}' for object literal ( "left: left + 'px'" is valid now)


    7. fix bugs#43 #46 #44 #49 #45 #40 #39

    更多内容及下载页面:0.4.0

    RegularJS 在实现上采取了angular的数据更新策略(但是提取了表达式的依赖关系以便在Object.observe正式到来时切换到脏检 查+observe的形式)提倡极致的声明式和裸数据操作, 依赖于基于字符串的模板描述结构结合更规范性的类式继承的组件体系来定义数据层的业务逻辑.

    这也是框架取名 regular = react(ractive) + angular的由来
    RegularJS v0.4.0 发布,JavaScript MVC 框架下载地址
     
正在加载...