// onbeforeunload 事件在即将离开当前页面(刷新或关闭)时触发
window.onbeforeunload = function () {
return /^\#\/ipinfo/.test(location.hash) || /^\#\/ipdetail/.test(location.hash) ? '您正处于编辑状态,确认离开该页面么?' : null;
};

  

最新文章

  1. .net 下载文件几种方式
  2. Makefile目标,伪目标,头文件自动依赖
  3. 34、Shiro框架入门三,角色管理
  4. Python入门-行和缩进
  5. 新建arcgis api for android 项目失败
  6. 牛客OJ——[编程题]A+B和C__如何输入多组测试数据(测试OK)
  7. noip2011 公交观光
  8. 用C++实现的八皇后问题
  9. [poj2585]Window Pains_拓扑排序
  10. C++语言编译系统提供的内部数据类型的自动隐式转换
  11. 【转】地球坐标系 (WGS-84) 到火星坐标系 (GCJ-02) 的转换算法
  12. 获取linux帮助命令
  13. Java相关面试题总结+答案(二)
  14. windows下提权基础
  15. python语法与c++不同点
  16. js实现简易版validate
  17. leetcode 703数据流中的第K大元素
  18. hystrix项目实战
  19. 分布式存储MooseFS
  20. vue-router利用url传递参数

热门文章

  1. poj——2367  Genealogical tree
  2. JSTL-XML标签库
  3. laravel event
  4. SaltStack学习系列之自定义grains
  5. Elasticsearch学习系列之多文档操作mget
  6. JAVA程序—HelloWorld 的编译运行
  7. java STW stop the world 哈哈就是卡住了
  8. samba服務器下文件夾chmod權限技巧
  9. php开启短标签
  10. io口的作用