輕量級 JavaScript 框架,Vue.js 1.0.0 beta1 發布
Vue.js 是構建 Web 界面的 JavaScript 庫,提供數據驅動的組件,還有簡單靈活的 API,使得 MVVM 更簡單。
主要特性:
-
可擴展的數據綁定
</li> -
將普通的 JS 對象作為 model
</li> -
簡潔明了的 API
</li> -
組件化 UI 構建
</li> -
配合別的庫使用
</li> </ul>
支持的瀏覽器:https://saucelabs.com/u/vuejs
Vue.js 1.0.0 beta1 發布,此版本包含 1.0.0 Alpha 5 的所有改進和 bug 修復。相比 0.12.15,改進如下:
重要改進
常規改進
-
The data binding syntax has been redesigned. Details
</li> -
The
</li>prefixglobal config has been deprecated. All directives will now consistently use thev-prefix. -
The
</li>strictglobal config has been deprecated. Asset resolution is now always in strict mode. Details -
The
</li>interpolateglobal config has been deprecated. Usev-preon elements that should be skipped by the template compiler. -
The
</li>inheritoption has been deprecated. Alway pass data to child components via props. -
The
</li>$addmethod has been deprecated for both Vue instances and observed objects. Use$setinstead. Details -
Event propagation for events sent via
</li> </ul>$dispatchand$broadcastnow stops when it triggers a handler for the first time, unless the handler explicitly returnstrue. Details指令
-
</li>v-repeathas been deprecated in favor ofv-for. Details -
</li>v-classandv-stylehave been deprecated in favor of the new binding syntax. Details -
</li>v-refandv-elusage has changed. Details -
</li>v-componenthas been deprecated in favor of theisattribute. Details -
</li>v-onwill now also listen to custom Vue events when used on a child component. Details -
The
</li>keyfilter forv-onhas been deprecated. Instead, use the new key modifer syntax. Details -
The
</li>optionsparam for<select v-model>has been deprecated. You can now just usev-forto render the options and it will work properly with thev-modelon the containing<select>element. -
The
</li> </ul>wait-forparam for components has been deprecated in favor of the newactivatelifecycle hook. Details組件 API
-
</li><content>outlet has been deprecated in favor of the new<slot>API. Details -
Props syntax has changed as part of the new binding syntax.
</li> -
</li>$datacan no longer be used as a prop. -
Props with the
</li>data-prefix are no longer supported. -
Literal props will no longer be auto-casted into Booleans or Numbers - they are now always passed down as Strings.
</li> </ul>其他改進
-
</li>vm.$log()messages now also include computed properties. -
Prop expressions now support filters.
</li> </ul>下載:https://github.com/yyx990803/vue/archive/1.0.0-beta.1.zip。
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-
-
-
-