form表单改为
οnsubmit="return checkForm(this,navTabAjaxDone)"
function checkForm(form,navTabAjaxDone){
//check函数中实现自己的逻辑
if(check()){
validateCallback(form,navTabAjaxDone);//dwz自身实现验证,跳转(刷新或关闭)
}else{
return false;
}
}
参考:https://blog.csdn.net/y666666y/article/details/70212307