草庐IT

javascript - 为什么我的 https 来源没有使用 navigator Geolocation 服务的权限?

尝试使用以下代码获取用户位置时:vargeoLocationProvider=newMicrosoft.Maps.GeoLocationProvider(BingMap.map);geoLocationProvider.getCurrentPosition({showAccuracyCircle:false,timeout:6000,successCallback:function(object){if(navigator.geolocation){//alert(ret);SearchViewModel.ConsoleLog("watchPositionfirsttryfromget