ie-judgement
判断ie版本
Last updated a month ago by boses .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ie-judgement 
SYNC missed versions from official npm registry.

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 版本?

Current Tags

  • 1.1.4                                ...           latest (a month ago)

5 Versions

  • 1.1.4                                ...           a month ago
  • 1.1.3                                ...           a month ago
  • 1.1.2                                ...           a month ago
  • 1.1.1                                ...           a month ago
  • 1.1.0                                ...           a month ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 73
Dependencies (0)
None
Dev Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |