zzh84615

通过js代码获取地址位置

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="js/jquery.js"></script>

<script type="text/javascript">
$.getScript(\'http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js\', function(_result) {
if (remote_ip_info.ret == \'1\') {
alert(\'国家:\' + remote_ip_info.country + \'<BR>省:\' + remote_ip_info.province + \'<BR>市:\' + remote_ip_info.city + \'<BR>区:\' + remote_ip_info.district + \'<BR>ISP:\' + remote_ip_info.isp + \'<BR>类型:\' + remote_ip_info.type + \'<BR>其他:\' + remote_ip_info.desc);
} else {
alert(\'没有找到匹配的IP地址信息!\');
}
});
</script>
</head>
<body>

</body>

</html>

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-12-22
猜你喜欢
  • 2021-07-31
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案