地理定位当前位置API在IE11 windows 10机器中不一致。 下面是代码地理位置当前位置API在IE11.5 windows10中不起作用
function setCurrentPos(event, firstLoad) {
navigator.geolocation.getCurrentPosition(function (position) {
firstLoad || setCurrentLocation(event.target, position.coords);
}, function (error) {
1 === error.code && ($this.currentLocDenied = !0);
});
}
4超过了它落入差错块5次,说明响应代码2(POSITION_UNAVAILABLE)“中的当前位置不能确定。”。
显示允许用户访问位置的浏览器提示设置为允许以便不应该是原因。
版本信息
我有同样的问题。我正在运行IE版本11.447.14393.0 – neumann1990