vue 标签元素绑定固定一个带条件的 class 加一个固有class

<div :class="['car_icon', { noting: !allNub }]" ref="carIcon" @click="shoppingCarShow = !shoppingCarShow;alertBoxShow = false;"></div>
 
car_icon为固定的class
noting为动态绑定的class
原文地址:https://www.cnblogs.com/150536FBB/p/13856160.html