### **BSL.StartGyro('callbackMethod')** //开启陀螺仪 调用后陀螺仪开始运行,一直返回数据直到主动停止或者关闭应用。返回数据为json字符串例子:{"x":"-0.17491333","y":"-0.42968523","z":"0.00491333"} ``` <script type="text/javascript"> function gyroData(r){ alert('xxxxx'); } </script> <a href="#" onclick="BSL.StartGyro()('gyroData')">开启陀螺仪</a> ``` ### **BSL.StopGyro()** //关闭陀螺仪 `<a href="#" onclick="BSL.StopGyro()">关闭陀螺仪</a>`