报错
getCurrentPosition() and watchPosition() are deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
获取用户地理位置必须在一个安全的环境中。比如使用了 https 协议的页面中。这么做主要是因为浏览器考虑用户的隐私安全。
这只是一个 Warning ,现在应该在非加密协议下的页面中还是可以使用,但将来会完全禁止。
<script type="text/javascript">
</script>