butterandfly / project_9

Blog & Remark
0 stars 0 forks source link

判断浏览器是否支持touch事件 #215

Open butterandfly opened 9 years ago

butterandfly commented 9 years ago
typeof(window.ontouchstart) !== 'undefined'

返回true的话就是支持触摸事件