Uncaught ReferenceError: function is not defined with onclick

前端 未结 3 1079
陌清茗
陌清茗 2020-11-22 05:50

I\'m trying to make a userscript for a website to add custom emotes. However, I\'ve been getting a lot of errors.

Here is the function:

fun         


        
3条回答
  •  长情又很酷
    2020-11-22 06:40

    I was receiving the error (I'm using Vue) and I switched my onclick="someFunction()" to @click="someFunction" and now they are working.

提交回复
热议问题