function validataOS(){

 

if(navigator.userAgent.indexOf(“Window”)>0){

return ”Windows”;

 

}else if(navigator.userAgent.indexOf(“Mac OS X”)>0) {

return ”Mac ”;

 

}else if(navigator.userAgent.indexOf(“Linux”)>0) {

return ”Linux”;

 

}else{

return ”NUll”;

}

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-12-02
  • 2022-01-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
相关资源
相似解决方案