+ -
当前位置:首页 → 问答吧 → 为什么参数无法传递到goolge map 里面

为什么参数无法传递到goolge map 里面

时间:2011-09-27

来源:互联网

var spotlat = document.getElementById("lat0").innerHTML;
var spotlng = document.getElementById("lng0").innerHTML;

  markerspot = new google.maps.Marker({
position: new google.maps.LatLng(spotlat,spotlng), 
map: map,
icon: image  
  });
position无法得到坐标
但是换成具体数据就可以了
请问有没有大牛能够指导下?

作者: personbusiness   发布时间: 2011-09-27

alert(spotlat ); 显示值是多少

作者: lirenniao   发布时间: 2011-09-27

相关阅读 更多