JS提交form表单 - 13337159127/Note GitHub Wiki
1.第一种方法? function checkUser(){} form id="formid" name= "myform" method = 'post' action = '/user/adduser.kexin' onsubmit = "checkUser();" > input type="submit" value="提交" class="btn2" /> 2.第二种方法? JS代码写法:document.getElementById("formid").submit(); form表格的写法,需要写id:form id="formid" method = 'post' action = 'user_login_submit.action'> button按钮的写法如下:input type="button" value="" class="btn2" onclick = "checkUser();"/>