发布于 2015-08-26 00:27:20 | 140 次阅读 | 评论: 0 | 来源: 网友投递

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

Vue.js 轻量级 JavaScript 框架

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


Vue.js 0.12.11 发布,此版本更新内容如下:

改进

  • Two-way filters for v-model have been reworked. A v-model binding with read filters will no longer attempt to format the value when the user is still typing; instead it formats the value on blur. This results in a much more natural UX and makes two-way filters much more usable. Demo

  • <select v-model="x" options="options"> now supports Object values.

  • And the bound value x will be the actual object instead of a serialized string.

  • filterBy filter has been improved (#1094):

    1. It now accepts multiple dataKeys arguments

    2. Each dataKey argument can be either a String or an Array of Strings.

    3. You can alternatively provide a custom filter function as the first argument.

  • currency filter can now accept an empty string argument to output the result without a currency symbol.

  • When in debug mode, Vue will also print async stack traces for warnings. Previously the stack trace stops at the internal batcher handler due to Vue's async update queue; now the stack trace goes all the way back to what originally triggered the update.

  • Component asset names can also be in PascalCase in addition to camelCase: myComponent and MyComponent will both be interpreted as my-component during the lookup.

  • Data object properties prefixed with _ and $ are now also observed; this means they can be used for data binding, however if it is a root-level property it will not be proxied on the vm instance.

  • Computed Property Caching

新特性

  • Added debounce filter which can be used with v-on for debouncing DOM events.

修复

  • v-attr should also set corresponding properties for selected and checked.

  • #1139 error when compiling props for a component with fragment el

  • #1150 keep-alive and wait-for not working together

  • #1152 dynamic component left undestroyed with keep-alive + wait-for

  • #1155 select option with empty string initial value not initialized properly

  • #1162 computed properties evaluation affected by order of data manipulations

  • #1185 v-if linker cache not taking transclusion host into account

  • #1191 resolveAsset not working properly for transcluded components in strict mode

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

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

主要特性:

  • 可扩展的数据绑定

  • 将普通的 JS 对象作为 model

  • 简洁明了的 API

  • 组件化 UI 构建

  • 配合别的库使用

支持的浏览器: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号  版权声明  广告服务