获取ip
<!DOCTYPE html> <meta charset="utf-8"> <HTML> <HEAD> <TITLE>ip</TITLE> </HEAD> <BODY> <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script> document.write(returnCitySN["cip"]+','+returnCitySN["cid"]+','+returnCitySN["cname"]) </script> <script> document.getElementById("demo").innerHTML=returnCitySN["cname"]; </script> </BODY> </HTML