vue form action post 方式提交
<form action="testform" method="post" @submit="submit($event)"></form>submit: function(event) {event.preventDefault();//validate failreturn true;//validate success return true or false}
·
<form action="testform" method="post" @submit="submit($event)">
</form>
submit: function(event) {
event.preventDefault();//validate fail
return true;//validate success return true or false
}
更多推荐
已为社区贡献2条内容
所有评论(0)