userAgent
123
const userAgent = navigator && navigator.userAgent;const IS_IE = navigator && navigator.userAgent && (navigator.userAgent.indexOf('MSIE') > -1 || navigator.userAgent.indexOf('Trident') > -1);
关于 userAgent 的学习,可以查看mdn上对应的文档