《1》 coupon.aspx 页面已经完成 (全部)
其中的问题 1 $(this).html(msg) 其中高度自适应的问题(没有解决)
2 下一级元素 (#list >div) (问题已经解决)
《2》 http://api.map.baidu.com/geocoder?location=30.990998,103.645966&output=xml&key=28bcdd84fae25699606ffad27f8da77b
获取当前位置 精确到市就可以
<!DOCTYPE html>
<html>
<body>
<p id="demo">点击这个按钮,获得您的坐标:</p>
<button onclick="getLocation()">试一下</button>
<script>
var x=document.getElementById("demo");
function getLocation()
{
if (navigator.geolocation)
{
navigator.geolocation.getCurrentPosition(showPosition);
}
else{x.innerHTML="Geolocation is not supported by this browser.";}
}
function showPosition(position)
{
x.innerHTML="Latitude: " + position.coords.latitude +
"<br />Longitude: " + position.coords.longitude;
}
</script>
</body>
</html>
浙公网安备 33010602011771号