Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论如何我可以使用window.ondevicemotion
window.ondevicemotion
那是。我希望用户单击一个按钮,然后将手机摇动一段固定的时间(比如五秒钟)并检索他/她在所有三个轴上摇动的平均速度。
有没有办法我可以做到这一点?
非常感谢你。