v-bind:class可以传入对象或者数组

  1. 对象;类似于{名称:判断},如{active:true,hello:true}则class属性值为active hello
  2. 数组;如[‘active’,‘hello’]