ip 获取 地理位置

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JavaScript API</title>
</head>
<body>
<script type="text/javascript" src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js"></script>
<script>
alert('省:' +  remote_ip_info.province + '--市:' + remote_ip_info.city);
</script>
</body>
</html>
原文地址:https://www.cnblogs.com/chixiaojin/p/2617483.html