小程序改变值使用setData(Donowan) let target = `data[&{index}]`; //设置最终的值 let value = 1; this.setData({ [target]:value }) //这就可以设置你想改变的那一项了