我一直用它来检测我的脚本中的触摸设备:
var is_touch_device = 'ontouchstart' in document.documentElement;
现在 Chrome 25.0.1364.172 m 在我的电脑上返回 true。
怎么了?如何更好地检测触摸设备?
我一直用它来检测我的脚本中的触摸设备:
var is_touch_device = 'ontouchstart' in document.documentElement;
现在 Chrome 25.0.1364.172 m 在我的电脑上返回 true。
怎么了?如何更好地检测触摸设备?