引用下面的js:
<script src="[http://pv.sohu.com/cityjson?ie=utf-8](http://pv.sohu.com/cityjson?ie=utf-8)"></script>
直接获取IP和城市名:
alert(returnCitySN['cip'] + returnCitySN['cname']);
引用下面的js:
<script src="[http://pv.sohu.com/cityjson?ie=utf-8](http://pv.sohu.com/cityjson?ie=utf-8)"></script>
直接获取IP和城市名:
alert(returnCitySN['cip'] + returnCitySN['cname']);