• browser 方法


    getIeVersion

    示例

    import { getIeVersion } from 'utils/browser';
    
    const ieVersion = getIeVersion();
    // => 11
    

    client

    示例

    import { client } from 'utils/browser';
    
    const client = client();
    // => { {ie: 0, firefox: 0, safari: 0, konq: 0, opera: 0, safari: 0, ver: "78.0.3904.70"}
    // engine: {ie: 0, gecko: 0, webkit: 537.36, khtml: 0, opera: 0, ver: "537.36",webkit: 537.36}
    // system: {win: "NT", mac: false, x11: false, iphone: false, ipod: false, mac: false, nokiaN: false, ps: false,wii: false,win: "NT",winMobile: false,x11: false}
    // }