Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Taro 3.x 不可以使用陀螺仪api 提示 不存在 求问
遇到了同样问题。不知道官方啥时候解决。。。
我找到原因了,是 Taro 的问题。
在 node_modules@tarojs\api\dist\index.esm.js 这个文件里面添加如下代码即可:
startGyroscope: true, stopGyroscope: true,
onGyroscopeChange: true,