javascript submit() is not a function

<script>
 window.onload = function(){
 document.getElementById('form').submit();
}
</script>

解决方法
Make sure that there is no name="submit" or id="submit" in the form

原文地址:https://www.cnblogs.com/caicaizi/p/10874976.html