setdata修改数组对象中的一个对象的某个字段,现在不支持了吗?
array:[{ text: '123' , checked: false , disabled: false },{ text: '123' , checked: false , disabled: false },{ text: '123' , checked: false , disabled: false },{ text: '123' , checked: false , disabled: false }] |
this .setData({ [ 'array[1].check' ]: true }) |
let key = 'array[' + 1 + '].checked' this .setData({ [key]: true }) |
都不生效,求大神帮忙看看