首页 > 问答 > 高手帮我看看这段js代码是什么意思

高手帮我看看这段js代码是什么意思

[导读]:var sf=returnCitySN["cname"]; if(sf.indexOf("北京市")=0){ window.location.href="http://bj.361piao.com/?bj"; } //else{ //window.location.href="/404.html"; //} //if(sf.indexOf("河北")=0){ // window.location.href="www.120ld.com/...

var sf=returnCitySN["cname"];
if(sf.indexOf("北京市")>=0){
window.location.href="http://bj.361piao.com/?bj";
}
//else{
//window.location.href="/404.html";
//}
//if(sf.indexOf("河北")>=0){
// window.location.href="www.120ld.com/?hb";
//}else{
// //window.location.href="/404.html";
//}

呃,是不是根据获取访问者IP地址然后返回两个不同的网址

本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/33374.html