Vue.js 0.12.0-rc 發布,JavaScript 庫

火星人 @ 2015-06-02 , reply:0


Vue.js 0.12.0-rc 發布,現已提供下載:Vue.js-0.12.0-rcs.zip

改進

  • v-repeat now supports using track-by="$index" when there's no key to track. This causes Vue to reuse the DOM elements and child instances in place without re-ordering them, so prefer using it on simple repeats without interactivity.

  • Literal props are now supported when manually mounting a root instance.

  • Paths containing dynamic segments, e.g. a[b] will now create the path if not already present, however, it will throw a warning and prompt you to pre-initialize the path if possible.

修復

  • props are now properly persisted when an instance's $data is replaced.

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

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






[火星人 via ] Vue.js 0.12.0-rc 發布,JavaScript 庫已經有235次圍觀

http://www.coctec.com/news/all/show-post-204764.html