解決方法Make sure that there is no or in the form<script> window.onload = function(){ document.getElementById('form').submit(); } </script>name="submit"id="submit"