发布于 2015-09-22 03:31:07 | 199 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的Vue.js 教程,程序狗速度看过来!

Vue.js 轻量级 JavaScript 框架

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


Vue.js 1.0.0 beta1 发布,此版本包含 1.0.0 Alpha 5 的所有改进和 bug 修复。

相比 0.12.15,改进如下:

重要改进

常规改进

  • The data binding syntax has been redesigned. Details

  • The prefix global config has been deprecated. All directives will now consistently use the v- prefix.

  • The strict global config has been deprecated. Asset resolution is now always in strict mode. Details

  • The interpolate global config has been deprecated. Use v-pre on elements that should be skipped by the template compiler.

  • The inherit option has been deprecated. Alway pass data to child components via props.

  • The $add method has been deprecated for both Vue instances and observed objects. Use $set instead. Details

  • Event propagation for events sent via $dispatch and $broadcast now stops when it triggers a handler for the first time, unless the handler explicitly returns true. Details

指令

  • v-repeat has been deprecated in favor of v-for. Details

  • v-class and v-style have been deprecated in favor of the new binding syntax. Details

  • v-ref and v-el usage has changed. Details

  • v-component has been deprecated in favor of the is attribute. Details

  • v-on will now also listen to custom Vue events when used on a child component. Details

  • The key filter for v-on has been deprecated. Instead, use the new key modifer syntax. Details

  • The options param for <select v-model> has been deprecated. You can now just use v-for to render the options and it will work properly with the v-model on the containing <select> element.

  • The wait-for param for components has been deprecated in favor of the new activate lifecycle hook. Details

组件 API

  • <content> outlet has been deprecated in favor of the new <slot> API. Details

  • Props syntax has changed as part of the new binding syntax.

  • $data can no longer be used as a prop.

  • Props with the 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.

其他改进

  • vm.$log() messages now also include computed properties.

  • Prop expressions now support filters.

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

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

主要特性:

  • 可扩展的数据绑定

  • 将普通的 JS 对象作为 model

  • 简洁明了的 API

  • 组件化 UI 构建

  • 配合别的库使用

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

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



历史版本 :
Vue 2.5.12 和 2.5.13 发布,轻量级 JavaScript 框架
VueJS 2.5.0 "Level E" 发布,做了许多改进
Vue 2.4.2 发布,轻量级 JavaScript 框架
Vue 2.4.0 和 2.4.1 发布,轻量级 JavaScript 框架 
Vue 2.3.4 正式发布,轻量级 JavaScript 框架 
Vue 2.3.3 正式发布,轻量级 JavaScript 框架 
Vue 2.3.2 发布,轻量级 JavaScript 框架
Vue 2.3.0 正式发布,轻量级 JavaScript 框架
Vue 2.3.0-beta.1 发布,轻量级 JavaScript 框架
Vue 2.2.6 发布,轻量级 JavaScript 框架
Vue 2.2.5 发布,轻量级 JavaScript 框架
Vue 2.2.3 和 2.2.4 发布,轻量级 JavaScript 框架
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务