zoukankan      html  css  js  c++  java
  • jq 监听返回事件

        <script>

     $(document).ready(function(e) {
                var counter = 0;
                if (window.history && window.history.pushState) {
                                 $(window).on('popstate', function () {
                                                window.history.pushState('forward', null, '#');
                                                window.history.forward(1);
                                              alert("不可回退");
                                              //window.location="./c.html";
                                    });
                  }

                  window.history.pushState('forward', null, '#'); //在IE中必须得有这两行
                  window.history.forward(1);
    });
        </script>

  • 相关阅读:
    Mysql InnoDB引擎下 事务的隔离级别
    Spring 两大核心 IOC 和 AOP
    java 冒泡排序
    MyBatis 传入List集合作为条件查询数据
    fastfusion运行
    数据集
    工具学习
    三维重建
    Scrivener破解
    博客园设置
  • 原文地址:https://www.cnblogs.com/simadongyang/p/7541702.html
Copyright © 2011-2022 走看看