Function getUserAgent

  • 获取浏览器信息

    Returns {
        browserName: string;
        browserVersion: string;
        osName: string;
        osVersion: string;
    }

    • browserName: string
    • browserVersion: string
    • osName: string
    • osVersion: string
    getUserAgent(); /// { browserName: 'Chrome', browserVersion: '102.0.0.0', osName: 'Windows', osVersion: '10.0', deviceName: '' }