In the development of Vue project, it was clear that the component was clicked to listen, but no matter how much it was clicked, there was no response, and the console did not report an error. After repeated row error found stepping on a small pit

  • All non-native tags, which are not custom tags such as div, H2, SPAN, button, etc., must be followed by “.native” after the event type when listening for events. This is to learn the content, as long as the learning is not firm, it is easy to step on the pit.