🔗 Event Modifiers: https://vuejs.org/guide/essentials/ev...
🔗 Key Modifiers: https://vuejs.org/guide/essentials/ev...
🔗 GitHub repository: https://github.com/Washingtonwei/lear...
🔗 GitHub repository: https://github.com/Washingtonwei/hogw...
The v-on directive is used to listen to DOM events and execute some JavaScript when they occur. It offers many convenient key modifiers, like .prevent and .stop, and many key modifiers to simplify your job. If you want to access the original DOM event in an event-handling function. You can pass it into a function using the special $event variable.
This video belongs to a playlist: • Learn Vue 3 with Bingyang
If you want to learn Vue 3 systematically, please visit the playlist (and save the playlist) for more Vue 3 tutorials.
Feel free to leave a comment if you have any questions.
As always, thanks for watching, and happy learning!