<td id="${pos.id}">
<div class="${pos.used==true?'bg-blue-madison partnumber-box':''}"
onclick="checkout(${pos.id})">
${pos.partitionAmount}
</div>
</td>
vue中
<div id="app" :class="{pos.used==true?'bg-blue-madison partnumber-box':''}">
{{pos.partitionAmount}}
</div>
最终都渲染为
<div id="app" :class="bg-blue-madison partnumber-box"></div>