前端--页面提交重置功能

javascript:

提交:document.getElementById('formId').submit();

重置:document.getElementById("formId").reset();

jQuery:

提交:$('#formId').submit()

重置:$('#formId')[0].reset();

原文地址:https://www.cnblogs.com/fengbing9891/p/5553234.html