js post提交调用方法

时间:2021-01-19 19:35:26
【文件属性】:
文件名称:js post提交调用方法
文件大小:15KB
文件格式:PDF
更新时间:2021-01-19 19:35:26
js js代码 post 代码如下: function post(URL, PARAMS) { var temp = document.createElement(“form”); temp.action = URL; temp.method = “post”; temp.style.display = “none”; for (var x in PARAMS) { var opt = document.createElement(“textarea”); opt.name = x; opt.value = PARAMS[x]; temp.appendChild(opt); } document.body.append

网友评论