How to bind different event names to the elements generated by v-for and perform unused logic according to different events?

clipboard.png

problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

problem description

the platform version of the problem and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Jan.18,2022

you can write an intermediary function by passing parameters

  

it's OK to pass parameters as mentioned by the friend just now, or you can add an attribute to the v-for source array object to indicate the event name

.
Menu