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

新闻 Vue.js 1.0.0 beta2 发布,轻量级 JavaScript 框架 下载

Discussion in '软件资讯' started by 漂亮的石头, 2015-09-27.

  1. 漂亮的石头

    漂亮的石头 版主 Staff Member

    Joined:
    2012-02-10
    Messages:
    487,295
    Likes Received:
    47
    Vue.js 1.0.0 beta2 发布,此版本更新内容如下:

    新特性


    • Attribute interpolations are back! You can again use this familiar syntax:

      <a href="{{baseUrl}}/abc"></a>

      However, this syntax now has a limitation: it is now allowed only in native attributes that are appropriate on the current element. If you use it in a directive, a non-native attribute, or a prop, Vue will warn you. This makes it explicit where mustaches are allowed, while keeping the familiar and syntax which sometimes is more convenient than v-bind.


    • v-else now works with v-show:

      <div v-show="ok">OK</div>
      <div v-else>NOT OK</div>
    Bug 修复


    • Compatibility with vue-router 0.6.1.


    • Fixed event propagation stopping without triggering any handler.


    • Fixed special filter arguments, e.g. in in filterBy search in 'name' not correctly recognized as special case string.

    下载:https://github.com/yyx990803/vue/archive/1.0.0-beta.2.zip

    同时发布了 Vue.js 0.12.16,更新内容如下:

    新特性


    • New global method: Vue.mixin().

      Apply a global mixin to all Vue instances. This is intended to make it easier for plugins to inject custom behavior. Not recommended in application code.


    • vm.$watch can now accept expressions with filters:

      vm.$watch('msg | uppercase', ...)
    Bug 修复


    • Fixed a performance regression introduced in 0.12 which made filtering super large arrays (> 5000 items) very slow.


    • vm.$interpolate now always returns a string.

    下载:https://github.com/yyx990803/vue/archive/0.12.16.zip

    Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。

    主要特性:


    • 可扩展的数据绑定


    • 将普通的 JS 对象作为 model


    • 简洁明了的 API


    • 组件化 UI 构建


    • 配合别的库使用

    支持的浏览器:https://saucelabs.com/u/vuejs

    [​IMG]
    Vue.js 1.0.0 beta2 发布,轻量级 JavaScript 框架下载地址
     
Loading...