JS ajax提交后清空页面中的表单 <body οnlοad="clearForms()" οnunlοad="clearForms()"> <script> //提交后清空表单 function clearForms() { var i; for (i = 0; (i < document.forms.length); i++) { document.forms[i].reset(); } } </script>