自定义表单比较,弹出的新窗口被拦截,如何解决这个问题?代码如下
function gotoLife_do(url,p){
$("#disabledImageZonelife").hide();
post(url,p);
}
function post(URL, PARAMS) {
var temp = document.createElement("form");
temp.action = URL;
temp.method = "post";
temp.setAttribute("target" , '_black' );
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;
}
è¿ä¸ªæ¯æµè§å¨è®¾ç½®çé®é¢ï¼åºè¯¥æ¯å¯ç¨äºå¼¹çªå±è½ï¼è¿ä¸ªæçæºå¨æ¯é»è®¤è®¾ç½®çï¼ä¸ªäººå»ºè®®ä¸è¦å¼¹æµè§å¨æ°tab,ä½ å¯ä»¥éè¿ajaxå¨åå°è¯è¨ï¼php,jsp...ï¼æ§å¶å¨éé¢åæ¹æ³ç¨åå°è¯è¨è·¯ç±å°æ°é¡µé¢ï¼
温馨提示:答案为网友推荐,仅供参考