關於陀螺儀 deviceorientation

檢測 if (window.DeviceOrientationEvent) { // 支持DeviceOrientation API寫在這裏 } else { console.log("對不起,您的瀏覽器還不支持Device Orientation!!!"); } 使用 window.addEventListener('deviceorientation', function(e
相關文章
相關標籤/搜索