第一层循环ltview for=quotarrquot key=quotindexquot ltviewitemnameltview 第二层循环,修改itemindex名称 ltview for=quotitemprocessquot foritem=quotitemaquot forindex。

1把要改变样式添加到相应js文件的全局变量中2将变量绑定到view中3在view中添加事件4在相应js文件中添加该自定义方法changeColor, function,e,thissetData,color , #fff1微信小程序有个属性hover。