Using HTML5 Geolocation API
TheGeolocationAPIisusedtoretrievetheuser'slocation,sothatitcanforexamplebeusedtodisplaytheirpositionusingamappingAPI.,ThegetCurrentPosition()methodoftheGeolocationinterfaceisusedtogetthecurrentpositionofthedevice.GeolocationPosition·Geolocation.w...。參考影片的文章的如下: