Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 15, 2015
2 parents 2c05b66 + bba159b commit ae23a64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## js判断是否断网了

[![GitHub issues](https://img.shields.io/github/issues/jaywcjlove/onlinenetwork.svg)](https://github.com/jaywcjlove/onlinenetwork/issues) [![GitHub forks](https://img.shields.io/github/forks/jaywcjlove/onlinenetwork.svg)](https://github.com/jaywcjlove/onlinenetwork/network) [![GitHub stars](https://img.shields.io/github/stars/jaywcjlove/onlinenetwork.svg)](https://github.com/jaywcjlove/onlinenetwork/stargazers)

此方法是通过 `online``offline` 事件来侦听是否断网,但是这个在 `IE ``Firefox` 中,并非断网了就是真的断网了。(如火狐中在选择 `菜单>>文件>>脱机工作`才会触发 `online``offline` 事件)

总之在`IE``Firefox`中一般情况下不能触发这俩事件,只有在选择脱机状态下才能触发此事件。
Expand Down

0 comments on commit ae23a64

Please sign in to comment.