alert(navigator.geolocation); //[object Geolocation]
alert(Geolocation); //function Geolocation() { [native code] }
为啥Geolocation是函数,navigator.geolocation不是返回这个对象吗?它俩啥关系?
alert(navigator.geolocation); //[object Geolocation]
alert(Geolocation); //function Geolocation() { [native code] }
为啥Geolocation是函数,navigator.geolocation不是返回这个对象吗?它俩啥关系?