<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>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-12-02
  • 2022-01-13
  • 2021-06-17
猜你喜欢
  • 2021-09-28
  • 2022-01-01
  • 2022-02-20
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
相关资源
相似解决方案