关于PHP如何用实现防止用户在浏览器上使用后退功能重复提交输入

$(function(){
    if(window.history && window.history.pushState){
        $(window).on('popstate',function () {
            window.history.pushState('forward',null,'#');
            window.history.forward(1);
        });
    }
    window.history.pushState('forward',null,'#');
    window.history.forward(1);
});

 

 

posted @ 2017-09-01 10:35  Nullnullisnull  阅读(348)  评论(0)    收藏  举报