牛骨文教育服务平台(让学习变的简单)
博文笔记

vue 绑定v-for 循环内部的值

创建时间:2018-03-20 投稿人: 浏览次数:197
<template **v-show="addresses.length > 0"**>
     <li class="market-adress-wrap fl" **v-for="(item,index) in addresses" :key="index"**>
         <input **v-model="addresses[index]"** class="market-adress-input"/>
          <span class="market-adress-remove" @click="removeAddress(index)">-移除</span>
      </li>
</template>

当需要展示用户输入的值(多项同类型),同时需要保存用户输入时,
暂定为此描述

声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。