form表单自动提交跳转,找代码多累,都 存到自己博客里吧
<form name="alipayment" action="api.php" method="post" id="alipayment">
<input type="hidden" class="form-control" name="id" value="内容" style="display: none"/> </form> <script> var theForm = document.forms['alipayment']; if (!theForm) { theForm = document.alipayment; } theForm.submit(); </script>