<a href="javascript:;" οnclick="javascript:post('http://xxx.xxx.com:8080/api/file/getDocumentFileToNotice', {path:'D:/xxx/uploadFile/15305200277656816220.txt',attachid
:'70006329428D6B1EE050E87C5E8437E9'})">测试A标签</a>
<script>
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.appendChild(temp);
temp.submit();
return temp;
}
</script>
:'70006329428D6B1EE050E87C5E8437E9'})">测试A标签</a>
<script>
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.appendChild(temp);
temp.submit();
return temp;
}
</script>