< view wx:for = "{{list}}" > < view class = "row" bindtap = "rowTap" data-index = "{{item.id}}" > < view class = "title" > < text >{{item.name}}</ text > </ view > </ view > </ view > |
如何动态修改列表中的某个值,比如点击rowTap事件,动态改变{{item.name}}的值
谢谢!我已经解决了,我用
that.setData({
[`list[${index}].name`]: name
});
你是想怎么改变?单个还是整个