import isIE from '../../EnvironmentalJudgment/isIE'; const isEdge = (): boolean => { const userAgent = navigator.userAgent; // 取得浏览器的userAgent字符串 const isEdge = userAgent.indexOf('Edge') > -1 && !isIE; return isEdge; }; export default isEdge;