|
楼主 |
发表于 2012-2-1 21:46:40
|
显示全部楼层
上海市上海市
我用精易试了下好像可以。
返回文本出现
<!--STATUS OK-->
<html><head><title>用户登录</title>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<META http-equiv='Pragma' content='no-cache'>
<script type="text/javascript" src="/js/tangram-1.5.0.core.js?v=20111117"></script>
</head>
<body>
<script>
var passCookie={
get:function(key){
var a,reg = new RegExp("(^| )" + key + "=([^;]*)(;|"+"\x24"+")");
if(a = document.cookie.match(reg))
return unescape(a[2]);
}
};
if(passCookie.get("J_MY")=='0'){
var url="http://www.baidu.com/"
url=url.replace(/^\.\//gi,"http://passport.baidu.com/");
//location.href=url;
}else{
//location.href="http://my.baidu.com/index.html?my=1&tn=baidu_myps_pg";
//location.href="http://www.baidu.com";
var url = "http://www.baidu.com";
}
</script>
<script>
window.location.replace(url);
</script>
</body>
</html>”
不知道对不对 |
|