日期:2014-05-17  浏览次数:20583 次

HTML5 设备访问入门

Geolocation

  • Geolocation工作原理
  • Geolocation API
    • getCurrentPosition方法
    • Geolocation数据
    • Handling Errors
    • PositionOptions对象
    • watchPosition()方法和clearWatch()方法
  • Example
  • 相关资源

设备事件 可以让开发人员确定用户在怎样使用设备(智能手机,平板电脑)

  • orientationChange 事件
  • MozOrientation 事件
  • deviceorientation 事件
  • devicemotion 事件

触控和手势

Notes: 有些手势不产生事件,有些手势需要在一定的条件下才会产生事件;但是我们可以通过组合各种手势进行处理。
  • One-Finger Events
    • The panning gesture
    • The touch and hold gesture
    • The double-tap gesture
  • Two-Finger Events
    • The pinch open gesture
    • Two-finger panning gesture
  • Multi-Touch Events

在线阅读 Slides