62,046
社区成员
发帖
与我相关
我的任务
分享
var ShowAttach = function (url) {
document.getElementById("showattach").href = url;
document.getElementById("showattach").click();
}
<a href="" target="_blank" id="showattach" style="display: none !important;"></a>
<form id="myFormDemo" method="post" action="openPage.html">
<input id="hdnMsg" name="hdnMsg" type="hidden" value="" />
</form>
document.getElementById("myFormDemo").submit();
//还有通过ajax方式的,都不行
//window.open opner 这些就不用说了,肯定会被拦