https://github.com/biyuqi/shame-ie
自动检测用户是否使用ie6,7的小插件,如果是,弹出模态框阻止浏览网站,并给出下载现代浏览器的链接
https://github.com/biyuqi/shame-ie
Last synced: 3 months ago
JSON representation
自动检测用户是否使用ie6,7的小插件,如果是,弹出模态框阻止浏览网站,并给出下载现代浏览器的链接
- Host: GitHub
- URL: https://github.com/biyuqi/shame-ie
- Owner: BiYuqi
- Created: 2017-03-10T12:55:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-10T13:06:34.000Z (over 9 years ago)
- Last Synced: 2025-01-17T07:44:38.861Z (over 1 year ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 拒绝IE6、IE7浏览器,并显示Chrome,Firefox,QQ浏览器的下载链接
本插件基于原生Javascript代码,无需jQuery即可正常运行.
## 使用方法
使用方式非常简单:只需在</body>之前调用以下js文件:
```Javascript
//确保安装有git
git clone https://github.com/BiYuqi/shame-ie.git
cd shame-ie
//hateIE.js hateIE.min.js 此为插件,在页面引入即可自动检测
或者
//test.html testjs.js 仅仅是测试文件
```
## 注意
不要使用测试文件的test.js,仅仅是测试文件;
只需引入 hateIE.min.js hateIE.min.js 二者其一即可
## 如果是ie6,7的浏览器会怎样?
![][1]
[1]: img/ie.png