ie-judgement
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

ie-judgement

用于判断当前浏览器是否为 ie,以及判断当前所在 ie 版本号

size License

简体中文 | English

下载

npm i ie-judgement
# or 
yarn add ie-judgement

file:umd-Ie

file:umd-Ie min 文件

快速上手

import Ie from "ie-judgement";
if (Ie.is(6, 11)) {
  // 如果是6-11执行一些操作
}

doc

function Ie(prefix = ["Moz", "Webkit", "O", "ms", "Khtml"]);
// prefix:string[]
方法 类型 描述
isIe boolean 判断当前浏览器是否为 Ie
isEdge boolean 判断当前浏览器是否为 Edge
detectCss(name: string) boolean 侦查当前浏览器 css 支持情况
public is(front: number, after?: number) boolean 根据给定参数判断是否为 ie

实现思路

如何判断 ie 版本?

Readme

Keywords

Package Sidebar

Install

npm i ie-judgement

Weekly Downloads

1

Version

1.1.4

License

MIT

Unpacked Size

26.1 kB

Total Files

11

Last publish

Collaborators

  • cs-xy