zoukankan      html  css  js  c++  java
  • 通过请求接口的办法获得本设备IP以及IP地址

    获取本设备IP接口(搜狐)

    http://pv.sohu.com/cityjson?ie=utf-8

    result Content:

    {
        "cip": "58.210.119.10",
        "cid": "320500",
        "cname": "江苏省苏州市"
    }

    查询指定IP的地址:

    http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=218.4.255.255

    result Content:
    {
        "ret": 1,
        "start": -1,
        "end": -1,
        "country": "中国",
        "province": "江苏",
        "city": "苏州",
        "district": "",
        "isp": "",
        "type": "",
        "desc": ""
    }

    <script type="text/javascript" src="http://ip.chinaz.com/getip.aspx"></script>
  • 相关阅读:
    CSS学习1
    三个和尚没水喝阅读笔记
    Javascript学习1

    mv 批量
    emacs 大小写转换
    too many open files
    成都定房
    有关重定向
    postgresql 数据库
  • 原文地址:https://www.cnblogs.com/hedianzhan/p/9173401.html
Copyright © 2011-2022 走看看