Vue中内联样式的三元表达式

267 阅读1分钟
<div :style="{'display': type==='2'?'':'none'}">