Blogger Information
Blog 77
fans 0
comment 2
visits 55698
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
JS判断当前屏幕是否支持触摸
南瓜又个梦
Original
680 people have browsed it
  1. let isTouchDevice='ontouchstart' in document.documentElement;
  2. console.log(isTouchDevice)

支持log出TRUE,不支持log出FALSE

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post