<th id="br2hw"></th>
      <th id="br2hw"></th>

      <label id="br2hw"></label>
      1. <th id="br2hw"></th><dd id="br2hw"><center id="br2hw"></center></dd>

        JS-傳感器

        開啟加速計

        BSL.StartAccelerate('callbackMethod')
        調用后加速計開始運行,一直返回數據直到主動停止或者關閉應用。返回數據為json字符串例子:{"x":"0.31543522","y":"0.42968523","z":"9.29485267"}

        <script type="text/javascript">
        	function accelerateData(r){
        		alert('xxxxx');
        	}</script><a href="#" onclick="BSL.StartAccelerate('accelerateData')">開啟加速計</a>

        關閉加速計

        BSL.StopAccelerate()
        <a href="#" onclick="BSL.StopAccelerate()">關閉加速計</a>

        開啟陀螺儀

        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>


        2020-03-05 10:00:04

        在線客服
        亚洲国产精品高清线久久
        <th id="br2hw"></th>
            <th id="br2hw"></th>

            <label id="br2hw"></label>
            1. <th id="br2hw"></th><dd id="br2hw"><center id="br2hw"></center></dd>