+
96
-

js怎么监听用户按了浏览器后退按钮?

js怎么监听用户按了浏览器后退按钮?

网友回复

+
16
-

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>BFW NEW PAGE</title>
    <script id="bfwone" data="dep=jquery.17&err=0" type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/bfwone.js"></script>
    <script type="text/javascript">
        bready(function() {

            if (window.history && window.history.pushState) {

                $(window).on('popstate', function() {
                    var h...

点击查看剩余70%

我知道答案,我要回答