用于移动网络的 javascript 中的 DeviceMotion 事件
我一直在网络上尝试找出如何使用 javascript 中的 devicemotion 事件来捕获 iPad 或 iPhone 的移动 safari 上的加速度计。我只是想知道如何将其实现到网站中,或者是否有人可以给我一个关于它如何工作的很好的解释,谢谢
I have been all over the web trying to figure out how to use the devicemotion event in javascript to capture the accelerometer on mobile safari for the iPad or the iPhone. I just would like to know how can i implement it into a website or if somewone could please give me a good explanation of how it works thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iOS 支持 DeviceOrientation API。
这是一个示例:http://www.mobilexweb.com/samples/ball.html
iOS supports the DeviceOrientation API.
Here's a sample: http://www.mobilexweb.com/samples/ball.html