提交表单前验证

<form action="http://www.baidu.com" onsubmit="return toVaild()">

function toVaild(){
   //代码块
}

猜你喜欢

转载自blog.csdn.net/weixin_45018191/article/details/92596454