html += `<button class="el-button el-button--small" οnclick="onSubmit()">主要按钮</button>`
在methods中添加onSubmit函数不起作用,应该在下面直接写
window.onSubmit =function(){
console.log(123)
}
html += `<button class="el-button el-button--small" οnclick="onSubmit()">主要按钮</button>`
在methods中添加onSubmit函数不起作用,应该在下面直接写
window.onSubmit =function(){
console.log(123)
}