用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();       
    }; 

你可能感兴趣的:(用window.location.href进行跳转,request得不到refer)