VUE problem, inserting a Html, into it will call a method onclick=xxx (r);. How can this r be passed in?

clipboard.png

Feb.28,2021

Why do you still do this with vue?
@ click= "f (r)" call it this way. In function f, call the function under your window.


this question I use another compromise method to achieve my desired goal. Bind the value value, pass it into the function itself is this, and then get the value in the global Method. This way is a little lenient, if there is a better way, please let me know.

Menu