javascript:
提交:document.getElementById('formId').submit();
重置:document.getElementById("formId").reset();
jQuery:
提交:$('#formId').submit()
重置:$('#formId')[0].reset();
javascript:
提交:document.getElementById('formId').submit();
重置:document.getElementById("formId").reset();
jQuery:
提交:$('#formId').submit()
重置:$('#formId')[0].reset();
转载于:https://www.cnblogs.com/fengbing9891/p/5553234.html