前言 今天主要介绍一下html5重力感应事件之DeviceMotionEvent,之前我的一篇文章http://www.haorooms.com/post/jquery_jGestures, 介绍了第三方封装的事件,里面的“orientationchange”可以获取设备方向的改变。今天主要介绍一下 Read More
posted @ 2017-11-13 17:02 xzzzys Views(1906) Comments(0) Diggs(0) Edit
关于devicemotion html5提供了几个新的DOM事件来获得设备物理方向及运动的信息,包括:陀螺仪、罗盘及加速计。 第一个DOM事件是**deviceorientation**,其提供设备的物理方向信息,表示为一系列本地坐标系的旋角。第二个DOM事件是**devicemotion**,其提 Read More
posted @ 2017-11-13 17:01 xzzzys Views(1485) Comments(0) Diggs(0) Edit
Mui自定义时间格式: (function($) { $.init(); $(document).on('tap','.btn',function(){ var obj = getFormJson($('#formid')); // console.log(obj.add_time); // con Read More
posted @ 2017-11-13 14:32 xzzzys Views(2356) Comments(0) Diggs(0) Edit