swan.onCompassChange 解释:监听罗盘数据,频率:5次/秒,接口调用后会自动开始监听,可使用swan.stopCompass停止监听。 Function callback accuracy 参数说明 请使用百度APP扫码 图片示例 在 js 文件中 Android