navigator.userAgent.toLowerCase().match(/chrome/) != null 如果是true 表示是chrome 如果是false 则表示是其它的浏览器
判断浏览器是不是chrome
最新推荐文章于 2024-07-26 10:14:05 发布
本文介绍了一种简单的方法来判断用户是否正在使用Chrome浏览器。通过检查navigator.userAgent属性并应用toLowerCase()及match()方法,可以准确地识别出Chrome浏览器。
5071

被折叠的 条评论
为什么被折叠?



