亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - vue only recognizes the first input in the list
僅有的幸福
僅有的幸福 2017-06-26 10:56:40
0
2
896

The questioner made a list and the effect is as shown

But clicking on the checkboxes on lines 2 and 3 all responds to the checkbox on the first line, so the questioner added a click method to him. After looking at it, he found that if I didn’t click on the second or third line, the itemIndex was both 0( itemIndex is the index of the data source v-for), it is good to add the click event to the highest level. Why is this happening?

僅有的幸福
僅有的幸福

reply all(2)
phpcn_u1582

Checkbox should be set to different values ??to obtain, otherwise the last two will be overwritten by the first one.

Peter_Zhu

See documentation

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template