<script> function datacheck(){ if(判断条件){ return "yes"; }else{ return "no"; } } function formSubmit(){ if(datacheck() == "yes"){ this.form.submit(); } } </script>
<script> function datacheck(){ if(判断条件){ return "yes"; }else{ return "no"; } } function formSubmit(){ if(datacheck() == "yes"){ this.form.submit(); } } </script>