推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
kenshinhu
0.01D

浏览器中 的 deviceorientation 事件中,怎样可以识别到设备在竖起手机时,判断出手机是左旋还是右旋呢?

  •  
  •   kenshinhu · Oct 31, 2016 · 2576 views
    This topic created in 3498 days ago, the information mentioned may be changed or developed.

    在浏览器中, deviceorientation 返回的 event.alpha 、 event.beta 及 event.gamma 表示设备坐标系上的旋角,但是这个怎样可以识别到手机在竖起手机时的左右旋转呢?

    1 replies    2016-10-31 17:58:55 +08:00
    ChiChou
        1
    ChiChou  
       Oct 31, 2016
    其实这是一个线性代数的问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2441 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:31 · PVG 09:31 · LAX 18:31 · JFK 21:31
    ♥ Do have faith in what you're doing.