function getUserLocation(){
map.getUserLocation( function ( state, point ){
if( 0 == state ){
console.log(JSON.stringify(point).longitude);
alert( JSON.stringify(point) );
}else{
alert( "Failed!" );
}
} );
}
为什么JSON.stringify(point).longitude 是undefined啊,
JSON.stringify(point)不是打印出来是 {"longitude":66,"latitude":66},为什么获取不到longitude啊
无敌无图 (作者)
我知道了,谢谢,我弄错了对象
2015-11-23 15:12