v-bind使用

v-bind使用

我们可以传给v-bind:class一个对象,以动态地切换 class: 上面的语法表示active这个 class 存在与否将取决于数据属性isActive的truthiness 。 你可以在对象中传入
html-css240