1自动submit方式
2手动button方式
1
<input type="submit" value="提交" class="sub" onsubmit = "return autoSubmit();" />
function autoSubmit(){
if(true){
return true;
}
return false;
}
2
<input type="button" value="提交" class="bt" onclick = "submitOnHand();" />
function(){
document.getElementById("formid").submit();
}