<div class="items" v-for="(item,index) in list" :key="index">
<input class="mui-input-numbox" type="number" :value="item.goods_num" />
</div>
多加一个:value
<div class="items" v-for="(item,index) in list" :key="index">
<input class="mui-input-numbox" type="number" :value="item.goods_num" />
</div>
多加一个:value
本文标题:vue for循环 修改input的value值
本文链接:https://www.haomeiwen.com/subject/lpwpiqtx.html
网友评论