如何修改data中数组的某个值
array是我在data里面定义的一个数组
var nowup = ‘array[’ + ind + ’ ]’;
this.setData({
[nowup]: 1
})
例如我要修改第二项的值怎么做?谢谢大家
VM3292:1 thirdScriptError
Only digits (0-9) can be put inside [] in the path string: array[1 ]; [Component] Event Handler Error @ pages/window/window#bound upclick
Error: Only digits (0-9) can be put inside [] in the path string: array[1 ]