一、修改数据,并在页面动态渲染
var rotateClassItem = ‘rotateClass[‘+ index + ‘]‘;that.setData({ [rotateClassItem]: !that.data.rotateClass[index]})