for 循环 给标签加动态属性
2017-06-20 本文已影响4人
yzc123446
<div class="xx" v-for="(item, index) in upload_img">
<input type="checkbox" name="upload_img" id ="xx" :id="['xxx'+index]" v-model="checkList_img" :value="item" />
<label :for="index">{{item}}</label>
</div>