JavaScript 框架,Vue.js 1.0.9 發布

jopen 9年前發布 | 19K 次閱讀 Vue.js

Vue.js 1.0.9 發布,此版本更新內容:

新構建步驟

  • The source code now uses ES2015 modules and leverages a more efficient build setup. This results in slightly better script parse time and smaller build size.

  • When installed via NPM and used with a module bundler (Webpack/Browserify), the main file is now a pre-bundled single file (dist/vue.common.js), which should also make builds faster.

  • Contributors: please note the build setup has changed. Here's the updated instructions.

Bug 修復

  • #1797 v-model and vm.$set can now properly initialize non-existent dynamic paths such as "a[b + 'c']".

  • #1800 properly preserve whitespace inside raw HTML interpolations

  • #1806 avoid duplicate classes during transclusion

  • #1816 Fix error when using Vue.set and Vue.delete on objects created via Object.create(null) (@kazupon)

  • #1839 Fix event propagation check when there are chained emits.

    • Note this fix changes an undocumented behavior of vm.$emit: previously it returns the vm itself. Now it returns a boolean value representing whether the event should propagate. Do not rely on any behavior that is not officially documented.

  • #1850 Fix v-ref on elements with both v-for and v-if.

  • props with wrong types on initialization are now still set up with reactivity.

下載:https://github.com/vuejs/vue/archive/v1.0.9.zip

Vue.js 是構建 Web 界面的 JavaScript 庫,提供數據驅動的組件,還有簡單靈活的 API,使得 MVVM 更簡單。

主要特性:

  • 可擴展的數據綁定

  • 將普通的 JS 對象作為 model

  • 簡潔明了的 API

  • 組件化 UI 構建

  • 配合別的庫使用

支持的瀏覽器:https://saucelabs.com/u/vuejs

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!