Dear friend, you may not know that when using @click to bind multiple events, there is a small pit, because I just encountered it, so, in order for you to stop stepping on the pit, I will share my experience Here you go, I hope it can help you!
Maybe when you are searching for how to use @click in vue to bind multiple events, you will search for the following tutorial, which is to bind an expression and a method at the same time .
Then, he will tell you that when binding multiple methods, you only need to use semicolons to separate multiple methods . There is absolutely no problem with this statement.
However , one thing must be remembered. When binding multiple methods at the same time, parentheses must be added to non-expression methods. If you do not add parentheses, the method will definitely not take effect.