Home > Net >  WeChat small program how to change the style according to the id in js
WeChat small program how to change the style according to the id in js

Time:12-04

WeChat small program how to change the style according to the id in js

CodePudding user response:

Three expression to class style

CodePudding user response:

Under the baidu the hope is helpful to you
 & lt; The view style="text - align: center;"> 
I will change color & lt;/label>




 
Page ({
Data: {
Color: "red"
},
ClickRed: function () {
Enclosing setData ({
Color: "red"
})
},
Clickgreen: function () {
Enclosing setData ({
Color: "green,"
})
}

})
  • Related