A vue page contains two identical components. If a subcomponent triggers an event, how do you know which subcomponent triggered it?

vue project, a parent component contains two same paging components. If I click on the next page event of one of the pages, I will pass this event to the parent component. How does the parent component know which child page component passed it


when different components trigger events, just pass a different parameter


pass different parameters


you can pass a unique attribute to the child component, such as id or data-id . When the child component triggers the event, bring the uniqueness of the current component id .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7c3ab3-13e4c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7c3ab3-13e4c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?