首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

用window.location.href开展跳转,request得不到refer

2012-10-31 
用window.location.href进行跳转,request得不到refer在ie下,用window.location.href*******赋值进行跳转

用window.location.href进行跳转,request得不到refer
在ie下,用window.location.href=*******;  赋值进行跳转的话,下一个页面在request里面得不到refer

解决办法:
function showimage(year,month,day) {
     //解决ie下不能得到refer的问题
     var url = "${contextPath}/calendar/getCalDayView/"+year+"/"+month+"/"+day;
     var e = document.createElement("a");
     e.href = url;
     document.body.appendChild(e);
     e.click();       
    }; 

热点排行