通过ip地址 获取ip地址所在地区的经纬度 通过ip地址 获取ip地址所在地区的经纬度?怎么弄的?貌似要借助google地图? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 刚刚讨论过:http://bbs.csdn.net/topics/390272529但它解析到的地址并不详细。<script type="text/javascript"> function jsShow(address){ var geocoder = new google.maps.Geocoder(); if(geocoder){ geocoder.geocode({'address': address }, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { var GeoCode = ((results[0].geometry.location).toString().replace(/[()]/g, '')).split(",",2); var lat = parseFloat(GeoCode[0]); var lng = parseFloat(GeoCode[1]); var result=lat+','+lng; alert('最后的结果为:'+result); return result; } }) } } function (){ var ip=document.getElementById('info').value; $.getScript("http://whois.pconline.com.cn/jsFunction.jsp?callback=jsShow&ip='"+ip+"'"); }</script>输入ip地址:<input id="info" type="text" value="61.188.38.99"> <input type="button" value="查询 " onclick="()"> Extjs中获取TreePanel节点的值的问题 在数据库读出的数据上加链接 动态加载js 中extjs ComboBox似乎失效了 IE pre标签换行问题 腾讯网迷你首页 拖动页面排序 JS弹出窗口无法正常运作 怎么实现这种弹出效果 求助~~~关于表单联动的问题! 200分 JS如何读取二进制文件? 我想弄一个通过的RETURN链接,用户一按就回到前一页,请问该怎么弄呢? 求教 急求!!!
function jsShow(address){
var geocoder = new google.maps.Geocoder();
if(geocoder){
geocoder.geocode({'address': address }, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var GeoCode = ((results[0].geometry.location).toString().replace(/[()]/g, '')).split(",",2);
var lat = parseFloat(GeoCode[0]);
var lng = parseFloat(GeoCode[1]);
var result=lat+','+lng;
alert('最后的结果为:'+result);
return result;
}
})
}
}
function (){
var ip=document.getElementById('info').value;
$.getScript("http://whois.pconline.com.cn/jsFunction.jsp?callback=jsShow&ip='"+ip+"'");
}
</script>
输入ip地址:<input id="info" type="text" value="61.188.38.99">
<input type="button" value="查询 " onclick="()">