Joe*_*y_D 7 javascript html5 google-chrome geolocation
我正在使用“地理位置”开发一个网页,为此,我每天需要多次允许访问和拒绝访问,以查看其如何与我的代码一起使用。这只是一个代码示例。
<script>
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
/* navigator.geolocation.getCurrentPosition(showPosition, showError);*/
} else {
alert("Geolocation is not supported by this browser.")
}
</script>
Run Code Online (Sandbox Code Playgroud)
突然,它总是拒绝跟踪我的位置,当我单击跟踪图标时,它说
"The following sites have been blocked from tracking your location on this page <my page name>"
Run Code Online (Sandbox Code Playgroud)
在它下面说
"Settings will be cleared on next reload"
Run Code Online (Sandbox Code Playgroud)
我尝试重新加载页面,尝试重新启动Google Chrome,我输入了位置设置,但阻止列表为空,因此也无法在其中找到我的页面。
那我该怎么办?只要页面被永久阻止,我就无法继续开发页面。
| 归档时间: |
|
| 查看次数: |
2307 次 |
| 最近记录: |