Skip to content

检查浏览器是否为 IE #116

@Dream4ever

Description

@Dream4ever

需求描述

在开发网页的过程中,还是不得不兼容 IE。在某些情况下,需要对 IE 做单独处理,这就需要检查用户当前浏览器是否为 IE。

一行代码的解决方案 /msie|trident/i.test(navigator.userAgent)

参考链接:Check if user is using IE

Metadata

Metadata

Assignees

No one assigned

    Labels

    BrowserAll about browsersJSJavascript

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions