First page Back Continue Last page Overview Image
GPS與感測器(一)
- navigator.geolocation 物件來取得GPS
- navigator.geolocation.getCurrentPosition(success[, error[, options]])
- navigator.geolocation.getCurrentPosition(function(position) {//程式寫這裏
}}
- Chrome要用https 協定才能取得GPS,其他感應器則不必