vue字符串拼接添加点击事件

html += ``

在methods中添加onSubmit函数不起作用,应该在下面直接写

window.onSubmit =function(){ 
  console.log(123)
}

你可能感兴趣的:(vue,前端)