var nums = ‘goods_list[‘ + e.currentTarget.dataset.indexs+‘].goods_num‘ //console.log(nuns) var num = e.currentTarget.dataset.num num=num+1 console.log(num) this.setData({ [nums]:num })
2023-11-24 10:08:10
var nums = ‘goods_list[‘ + e.currentTarget.dataset.indexs+‘].goods_num‘ //console.log(nuns) var num = e.currentTarget.dataset.num num=num+1 console.log(num) this.setData({ [nums]:num })
下一篇:微信小程序开发5-WXML