如何识别浏览器类型

const ua = navigator.userAgent
const isChrome = ua.indexOf('Chrome')
console.log(isChrome)

results matching ""

    No results matching ""