三、class与style绑定

对象形式:

 点击实现颜色切换

数组形式:

style样式  —>  { } / [ ]

数组形式可放多个属性

原文地址:https://www.cnblogs.com/tianya-guoke/p/10847168.html