ts2009 发表于 2015-10-26 13:39:51

Vue 1.0.0 Beta 3 发布,轻量级 JavaScript 框架

  v-model: multiple checkbox input can now be bound to the same v-model value (must be an Array):
  

  

  With checkedNames' initial value being an Array, the
checked boxes' values will be pushed into the Array, while unchecked
ones will be removed from it. For example, if we check the first two
boxes, checkedNames will have the value ["Jack", "John"]. Of course, you can also dynamically bind the value with v-bind.
页: [1]
查看完整版本: Vue 1.0.0 Beta 3 发布,轻量级 JavaScript 框架