form表单自动提交跳转 form表单自动提交跳转

form表单自动提交跳转

 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>

评论 0

挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
提交评论

清空信息
关闭评论