1、打开点击电话,进入界面。
2、接着在里面输入*#*#64663#*#代码,如下图。
3、接着会进入手机调试界面,在里面选择触摸屏测试,如下图。
4、在屏幕内部随意滑动屏幕,方便校准。
5、画完后点击下发的开始校准,如下图。
6、等待校准完成即可,如下图。
可以使用事件绑定机制。如:
$('元素').bind({'touchstart mousedown' : function(){$('#touch_tips').text('按下或触摸') },'touchmove mousemove' : function(){ $('#touch_tips').text('移动中') },'touchend touchcancel mouseup' : function(){ $('#touch_tips').text('松开') }})具体请搜索【touch event】手机触屏事件。注意,不支持windows phone!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)