加v-model="item.productQuentity"报了这个错:
[Vue warn]: <input v-model="item.productQuentity" value="0">:
inline value attributes will be ignored when using v-model. Declare initial values in the component's data option instead.
这个错误要删除 value="0"属性吧
[Vue warn]: <input v-model="item.productQuentity" value="0">:
inline value attributes will be ignored when using v-model. Declare initial values in the component's data option instead.
这个错误要删除 value="0"属性吧
2017-02-17
var a = {title:'xmp',list:[{name:'000',age:21},{name:'001',age:22},{name:'003',age:22}]}
undefined
var index = a.list.indexOf({name:'000',age:21});
undefined
index
-1
var index = a.list.indexOf({name:'001',age:22});
undefined
index
-1
undefined
var index = a.list.indexOf({name:'000',age:21});
undefined
index
-1
var index = a.list.indexOf({name:'001',age:22});
undefined
index
-1
2017-02-16