js 获取 ip 地址

原文: http://www.javashuo.com/article/p-qgtrjcqa-kb.htmljavascript

使用方法:利用搜狐查询接口举例说明java

<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<script type="text/javascript">  
    console.log(returnCitySN["cip"]+','+returnCitySN["cname"])  
</script>
相关文章
相关标签/搜索