板上的高手大家好!
在下是半桶水的专题生
用HTML写网页
因为需要网页提供GPS、地图等功能
参考这位大大的现成code
http://blog.xuite.net/gkyo0510/wretch/242769650-html5(GPS%E5%9C%B0%E7%90%86%E5%AE%9A%E4%BD%8D)
一开始用没问题但后来出现
getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
以下是localhost跟用区网ip打开的情形
http://i.imgur.com/pPkh5H8.jpg
http://i.imgur.com/0rZsBQT.jpg
请问我要怎么改code
网络查到都是英文内容
似乎是安全性阻挡的因素
跪求大大解救