xlj-code
function isIos(){
    var equipmentType = "";
    var agent = navigator.userAgent.toLowerCase();
    var android = agent.indexOf("android");
    var iphone = agent.indexOf("iphone");
    var ipad = agent.indexOf("ipad");
    if(android != -1){
        equipmentType = false;
    }
    if(iphone != -1 || ipad != -1){
        equipmentType = true;
    }
    return equipmentType;
}
alert(isIos());

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-02-06
  • 2021-12-22
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
相关资源
相似解决方案