且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Javascript GeoLocation 在 Chrome 上不起作用

更新时间:2023-12-04 23:08:28

好的,这很容易...... Chrome 自 2016 年 4 月 20 日起禁用了不安全网站的 Geolocation API(没有 https)......链接在这里

Ok this was quite easy... Chrome since 20 of April 2016 has disabled the Geolocation API for insecure websites (without https)... link here

https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only

所以别担心..