【发布时间】:2023-03-19 10:28:01
【问题描述】:
我想包装 2 个 html 元素
这是我在vuejs中的代码
<tr>
<th v-for="(item9,index) in product_all" :key="item9.id"><center>Qty</center></th>
<th v-for="(item99,index) in product_all" :key="item99.id"><center>Amount</center></th>
</tr>
这就是我想要的(在 laravel 刀片中)
<tr>
@foreach($dataProduct['byShowTanggal'] as $row)
<th>Qty</th>
<th>Amount</th>
@endforeach
</tr>
【问题讨论】:
标签: javascript php html laravel vue.js