js脚本
if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i))) { //判断是不是 移动设备 }
'ontouchstart' in window; 判断支不支触屏