打印 var 映射
var map = new google.maps.Map(document.getElementById(el), settings);
console.log(map);
输出是
Ri {gm_accessors_: Object, zoom: 15, gm_bindings_: Object, center: Q, disableDefaultUI: true…}
Ab: Wh
D: W
De: rg
Fc: rg
I: W
Ja: yg
N: W
Re: rg
Se: rg
__e3_: Object
b: div#map
center: Q
controls: Array[14]
d: Qi
disableDefaultUI: true
e: W
features: W
gm_accessors_: Object
gm_bindings_: Object
keyboardShortcuts: false
l: rg
mapDataProviders: "Map data ©2013 Google"
mapTypeId: "roadmap"
mapTypes: Gg
mapUrl: "http://maps.google.com/maps?ll=48.89376,2.33742&z=15&t=m&hl=en-US&mapclient=apiv3"
overlayMapTypes: yg
streetView: Qi
tilt: 0
tosUrl: "http://www.google.com/intl/en-US_US/help/terms_maps.html"
wc: yg
zoom: 15
zoomControl: true
__proto__: c
我只是想得到这个 div ID 值b: div#map
。console.log(map.b)
不打印div#map
是我的语法不正确吗?