var ua = navigator.userAgent.toLowerCase();    
    if (/iphone|ipad|ipod/.test(ua)) {
            //alert("iphone");        
    } else if (/android/.test(ua)) {
            alert("android");    
    }

 

相关文章:

  • 2022-12-23
  • 2022-03-05
  • 2021-10-24
  • 2021-11-14
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-02
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-11-25
  • 2022-12-23
相关资源
相似解决方案