发布于 2016-06-23 00:33:19 | 91 次阅读 | 评论: 0 | 来源: 网友投递
Vue.js 轻量级 JavaScript 框架
Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。
Vue v2.0.0-alpha.6 发布了,
更新内容:
Now works with vue-devtools 2.0.0
Properly support number keyCodes and custom keyCodes in v-on
. Custom keyCodes can be defined in Vue.config.keyCodes
:
Vue.config.keyCodes.a = 65
<input @keyup.a="aPressed">
The binding
object in custom directive hooks now exposes the raw expression as a string:
<div v-custom="msg"></div>
Vue.directive('custom', { bind (el, binding) { console.log(binding.expression) // "msg" } })
#3133 Fixed computed properties dependency collection error
#3137 Fixed template error detection incorrectly detecting keywords
Fixed output for undefined
and null
values for v-model
Fixed unary tags handling in single-file component parser
下载地址: