var isChrome = window.navigator.userAgent.indexOf("Chrome") !== -1;
if (isChrome) {
     alert("是Chrome浏览器"); 
} else {
     alert("不是Chrome浏览器"); 
}

 

相关文章:

  • 2022-12-23
  • 2021-07-25
  • 2021-08-12
  • 2021-06-26
  • 2021-05-18
  • 2022-02-15
  • 2022-12-23
猜你喜欢
  • 2022-02-28
  • 2021-05-12
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案