微信小程序 修改数据,并动态渲染页面;修改数组;
时间:2018-12-07 17:08:04
收藏:0
阅读:896
一、修改数据,并在页面动态渲染
this.setData({
txt: ‘12112‘
})
二、修改数组
var rotateClassItem = ‘rotateClass[‘+ index + ‘]‘;
that.setData({
[rotateClassItem]: !that.data.rotateClass[index]
})
原文:https://www.cnblogs.com/siyecao2010/p/10083896.html
评论(0)