我要检查该值是否为空。
Paid : <h6 v-for="pai in PaidAmount">
<b v-if="pai.billno==report.bill_no" >
{{pai.paid + report.paid}}</b>
</h6>
如果{{pai.paid + report.paid}}
为空,那么我只想打印{{report.paid}}
答案 0 :(得分:1)
检查
<h6 v-for="pai in PaidAmount">
<b v-if="pai.billno==report.bill_no" >
{{ (pai.paid + report.paid) ? (pai.paid + report.paid) : report.paid }}
</b>
</h6>