帮助,这让我发疯:
我有包含以下内容的 routeMapping 变量:
{"b":[{"Ya":53.388639,"Za":-1.4785248000000593},{"Ya":53.39310538272831,"Za":-1.464529037475586}],"gm_accessors_":{"length":null},"length":2,"gm_bindings_":{"length":{}}}
这行得通
alert('length is ' + (routeMapping.length -1))
这样做:
alert(routeMapping);
但不是这个!:
alert(routeMapping.b[1].Ya);
请帮忙