一、修改数据,并在页面动态渲染
this.setData({
txt: ‘12112‘
})
二、修改数组
var rotateClassItem = ‘rotateClass[‘+ index + ‘]‘;
that.setData({
[rotateClassItem]: !that.data.rotateClass[index]
})
2023-11-17 10:55:40
一、修改数据,并在页面动态渲染
var rotateClassItem = ‘rotateClass[‘+ index + ‘]‘;
that.setData({
[rotateClassItem]: !that.data.rotateClass[index]
})