看板 Web_Design 關於我們 聯絡資訊
※ [本文轉錄自 Ajax 看板 #1SuFictv ] 作者: oToToT (屁孩) 看板: Ajax 標題: [問題] Sensor API 時間: Sun May 19 14:43:38 2019 最近想做一個需要用到手機加速度計跟陀螺儀的小web app,記得大概去年的時候我參考 https://www.oxxostudio.tw/articles/201506/html5-device-orientation.htmlhttps://developer.mozilla.org/en-US/docs/Web/API/Window/devicemotion_event 有成功獲取過這兩個資源,但是剛剛重新想獲取的時候就發現我無法拿到資料了。 同時也有查到目前已經有另外一種獲取這些資源的方式 https://developer.mozilla.org/en-US/docs/Web/API/Sensor_APIs 然而似乎這種方式支援的更少,不知道現在該如何拿到加速度計跟陀螺儀的資料呢? p.s. 目前我在用自己的iPhone測的時候上面的兩種方法都沒法成功讀到資料 -- Send from JPTT on my Google Glasses -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.193.102.192 ※ 文章網址: https://www.ptt.cc/bbs/Ajax/M.1558248230.A.DF9.html ※ 發信站: 批踢踢實業坊(ptt.cc) ※ 轉錄者: oToToT (210.71.78.241), 05/21/2019 11:54:07
Rplus: https://tinyurl.com/pffvppa | MDN 05/21 14:22