Js识别国内省ip->判断

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>  
<script type="text/javascript">    
if(returnCitySN["cname"]!="山东")
{
  window.location="http://www.baidu.com/"; 
  }
</script>
</head>

<body>
</body>
</html>

你可能感兴趣的:(Js识别国内省ip->判断)