原始示例

<div v-for="item in items">
    <input type="text" v-model="'goods_'+$index">//我想他是goods_0,这样绑定他就直值输出到value上了
</div>

需要修改

v-model="'goods_'+$index" 改成 v-bind:value="'goods_'+$index" ;

 原文地址:  https://segmentfault.com/q/1010000006031392/a-1020000006051522

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-29
  • 2021-10-26
  • 2021-05-22
  • 2022-01-23
  • 2021-09-20
相关资源
相似解决方案