JS判断是否移动端设备

if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){
  ...//移动设备
}  

  

猜你喜欢

转载自www.cnblogs.com/cocoaguo/p/12111434.html