【浏览器】获取浏览器类型--Navigator.userAgent

100 阅读1分钟

获取浏览器类型--Navigator.userAgent

userAgent 是 Navigator 的只读属性,返回当前浏览器的用户代理字符串。即是返回用户当前使用的浏览器的能代表浏览器的字符串标识。