发布于 2015-09-21 00:19:36 | 73 次阅读 | 评论: 0 | 来源: 网友投递
Vue.js 轻量级 JavaScript 框架
Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。
Vue.js 1.0.0 Alpha 5 发布,此版本更新内容如下:
bind-attr
is now replaced by v-bind:attr
, with :attr
as shorthand;
on-event
is now replaced by v-on:event
, with @event
as shorthand; Also, key filter is now denoted with .
as a modifier: @keyup.esc="handleEsc"
.
Literal directive: v-dir#="xxx"
is now replaced by v-dir.literal="xxx"
.
Prop binding types:
:prop@="twoWay"
is now replaced by :prop.sync="twoWay"
:prop*="oneTime"
is now replaced by :prop.once="oneTime"
Child component and element refs:
$.child
is now replaced by v-ref:child
. vm.$
is also renamed to vm.$refs
.
$$.node
is now replaced by v-el:node
. vm.$$
is also renamed to vm.$els
.
v-on
now also works for custom events when used on a child component.
所有 0.12.15 版本的修复
下载:https://github.com/yyx990803/vue/archive/1.0.0-alpha.5.zip。
Vue.js 0.12.15 发布,此版本主要是 bug 修复:
#1321 options
param for <select v-model>
doesn't work with Array of numbers
#1322 elements with transition stuck in DOM if it is hidden by CSS
#1327 v-model
firing unnecessary update at compositionend
in lazy mode
#1330 template parser entity regex fails to detect entities in hex format
下载:https://github.com/yyx990803/vue/archive/0.12.15.zip。
Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。