首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏前端进阶学习交流

    拼刀刀店铺后台的参数anti-content逆向分析

    && Object.defineProperty(window, "outerWidth", { value: 1920, writable: false }); function DeviceOrientationEvent (){ console.log("DeviceOrientationEvent",arguments) } window["DeviceOrientationEvent"]=DeviceOrientationEvent

    1.3K10编辑于 2022-08-17
  • 来自专栏练小习的专栏

    设备方向事件与设备运动事件以及简单的摇一摇实现

    设备方向事件 当设备的物理方向改变(如果用户倾斜或旋转设备)且改变幅度大于等于 0.01 度时,触发 DeviceOrientationEvent 对象。 DeviceOrientationEvent 对象提供的数据可指定设备在地球固定坐标系上的对应方向。具体而言,此地球坐标系包含以下三个轴: 东方轴 (X) 为地平面,垂直于北方轴且正对东方。

    1.3K50发布于 2017-12-29
  • 来自专栏HT

    基于 HTML5 WebGL 的 CPU 监控系统

    window.addEventListener('deviceorientation', (e) => { this.onOrientationEvent(e); }); orientation 事件中 3 个重要值: 属性值 含义 DeviceOrientationEvent.alpha DeviceOrientationEvent.beta 设备水平放置时,沿 x 轴的旋转角度,范围 [-180, 180] 。 DeviceOrientationEvent.gamma 设备水平放置时,沿 y 轴的旋转角度,范围 [-90, 90] 。

    1.3K30发布于 2020-04-24
  • 来自专栏pangguoming

    html5调用手机陀螺仪实现方向辨识

    beta:
    gamma:
    </body> <script> if (window.DeviceOrientationEvent

    4.7K20发布于 2018-10-11
  • 来自专栏大前端(横向跨端 & 纵向全栈)

    IOS系统中H5页面实现摇一摇功能

    undefined' && typeof (DeviceMotionEvent.requestPermission) === 'function') { window.DeviceOrientationEvent.requestPermission

    1.6K20编辑于 2021-12-28
  • 来自专栏IMWeb前端团队

    HTML5设备定向小实践

    只能算是部分支持,所以在使用时,首先需要检测支持能力,很简单: if (window.DeviceOrientationEvent) { window.addEventListener('deviceorientation

    98420发布于 2019-12-04
  • 来自专栏Czy‘s Blog

    Event对象

    ClipboardEvent CloseEvent CompositionEvent CSSFontFaceLoadEvent CustomEvent DeviceLightEvent DeviceMotionEvent DeviceOrientationEvent

    97610发布于 2021-02-25
  • 来自专栏IMWeb前端团队

    HTML5设备定向小实践

    只能算是部分支持,所以在使用时,首先需要检测支持能力,很简单: if (window.DeviceOrientationEvent) { window.addEventListener('deviceorientation

    1.5K60发布于 2017-12-29
  • 来自专栏云游的小教程

    旋转吧!徽章!

    . // gamma: 从左到右 let deltaGamma = event.gamma - this.lastGamma; ... }, true); 查询 DeviceOrientationEvent

    5.1K31发布于 2021-09-23
  • 来自专栏java知识点总结

    vue中v-on支持的事件总结

    DeviceMotionEvent Device Orientation Events Fresh data is available from a motion sensor. deviceorientation DeviceOrientationEvent

    41000编辑于 2025-02-24
领券