摘要: Vue-day03 提问: 1.动态绑定样式的方式 答:1.通过绑定class : 1. :class = '变量名' 变量名需要在data中声明,并且值要在style中定义 2. :class = '[index%2==0 : "red" : "green"]' 只需要在style中声明类名 (三 阅读全文
posted @ 2021-01-06 21:41 安亦辰00 阅读(71) 评论(0) 推荐(0)