1.html
@submit.native.prevent 阻止默認(rèn)提交,添加在form標(biāo)簽上
@keyup.native.enter 回車操作,添加在input標(biāo)簽上
2.render
render:(h)=>{
const self=this
return h('form',{
nativeOn: {
submit: (e) => {
e.preventDefault();
}
}
})
},