<form action="http://www.baidu.com" onsubmit="return toVaild()">
function toVaild(){
//代码块
}
提交表单前验证
猜你喜欢
转载自blog.csdn.net/weixin_45018191/article/details/92596454
今日推荐
周排行