JS中使用post打开网页
function postUrl(filed,value,url) {var doc = document.createElement("form");
doc.action = url;
doc.method = "post";
doc.style.display = "none";
var opt = document.createElement("textarea");
opt.name = filed;
opt.value = value;
doc.appendChild(opt);
document.body.appendChild(doc);
doc.submit();
});
文档来源:51CTO技术博客https://blog.51cto.com/u_15298588/3034113
页:
[1]