In April 2017, at the current time, how to obtain the current location geolocation through H5 or JS, all the geolocation APIs that come with H5 are not valid
Nothing happens after running the official document
You can’t get geolocation through any browser or Baidu map.
Have been personally tested and have no effect
After the pop-up window clicked Allow, there was no response
The problem has been solved, I forgot to close it, now I will show it to everyone
You must declare it first
Introduce the corresponding js under index.html
Then the positioning is ok, but it takes about three seconds to position on the PC browser, and the mobile 4G network is great
Publish it as a domain test like (localhost/xxx/xxx.html), do not open the .html directly and browse it on the browser, it will become (file:///)
Baidu needs to apply for an account and have its own key to ensure operation of?
If you try using IE, it should show that Google is blocked.
http://stackoverflow.com/ques...
The latest version of chrome needs to enable https to use geolocation