正文如何通过navigator.userAgent判断是哪款浏览器?IP云V管理员/2022-12-01/0 阅读 12/01小程序:扫一扫查出行【扫一扫了解最新限行尾号】复制小程序 userAgent 用户代理。通过浏览器控制台alert( navigator.userAgent );可以获得当前浏览器的信息,如果逆推呢? 通过navigator.userAgent判断是哪款浏览器 navigator.userAgent字符串中, 有“firefox”的是火狐浏览器, 有“chrome”也有“safari”的是谷歌浏览器, 只有“safari”或“iphone”的是苹果浏览器, 其他有 (一堆" .NET ") 是IE浏览器。