摘要: 之前学到的指令 v-bind 在用于绑定class和style时,表达式结果可以是字符串、数组、对象。 一、绑定HTMLClass ① 对象语法 渲染结果为: 注:当v-bind:class的表达式的值为 false,0,""(空字符串),null,undefined,NaN(Not a numbe 阅读全文