发布于 2015-08-27 00:48:03 | 129 次阅读 | 评论: 0 | 来源: 网友投递
Vue.js 轻量级 JavaScript 框架
Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。
Vue.js 0.12.12 发布,更新内容如下:
v-model
on checkbox can now bind the model value to expressions instead of just true
or false
. Example:
<input type="checkbox" v-model="example" true-exp="a" false-exp="b">
// when checked:vm.example === vm.a// when unchecked:vm.example === vm.b
v-model
on radio also gets the same feature:
<input type="radio" v-model="example" exp="a">
// when checked:vm.example === vm.a
v-model
on checkbox should now update the input checked state based on truthy-ness again. In 0.12.11 it is only checked when value strictly equals true
.
下载地址:0.12.12
Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。
主要特性:
可扩展的数据绑定
将普通的 JS 对象作为 model
简洁明了的 API
组件化 UI 构建
配合别的库使用
支持的浏览器:https://saucelabs.com/u/vuejs