JS使用POST请求打开新窗口
//发送POST请求跳转到指定页面function httpPost(URL, PARAMS) { var temp = document.createElement("form"); temp.action = URL; temp.method = "post"; temp.target = "_blank"; //1.跳转新窗口需要设置该参数 2.当前页跳转可以去掉该参数 temp.style.display = "none"; for (var x in PARAMS) .
原创
2022-01-14 16:08:10 ·
4471 阅读 ·
1 评论