作者jami520 (我的生命因你而发光)
看板Google
标题[问题] (纬度,经度)怎样可以个别存成一个变数呢?
时间Sat Aug 30 08:44:44 2008
function showAddress(address,dec)
{
if (geocoder)
{
geocoder.getLatLng(
address,
function(point)
{
if (!point)
{
alert(address + " not found");
}
else
{
alert(point) //显示(25,31)
}
}
}
}
point会是(25,31),好像有包含括号
不知道有办法各别取其纬度和经度存成变数吗?
例如:
Lat=25
Lng=31
不知道这样该怎样写呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.193.176.104
1F:→ KC73:lat = point.lat(); lng = point.lng(); 08/30 09:15