JS is determined whether the mobile terminal device

IF (navigator.userAgent.match (/ (the iPhone | the iPod | the Android | iOS) / I)) { 
  ... // mobile 
}  

  

Guess you like

Origin www.cnblogs.com/cocoaguo/p/12111434.html