• 根据IP地址获取所在城市【通过新浪接口】


    <html xmlns="http://www.w3.org/1999/xhtml">
    < head runat="server">
        <title></title>
        <script src="js/jquery-1.7.min.js" type="text/javascript"></script>
       <script src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js" type="text/ecmascript"></script>
        <script type="text/javascript">
            function getIpPlace() {


            alert(remote_ip_info["province"] + "省" + ',' + remote_ip_info["city"] + "市")


            } </script>
    < /head>
    < body>
        <form id="form1" runat="server">
        <div>
            <input id="Button1" type="button" value="根据IP地址获取所在城市" onclick="getIpPlace();" />
        </div>
        </form>
    < /body>
    < /html>

  • 相关阅读:
    待重写
    待重写
    待重写
    ReflectionUtils使用
    kafka消费组、消费者
    待重写
    Map接口常用实现类学习
    利用httpClient发起https请求
    sql常用格式化函数及字符串函数
    method reference
  • 原文地址:https://www.cnblogs.com/mili3/p/3062995.html
Copyright © 2020-2023  润新知