Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ajax 后退按钮?_Ajax_Jquery - Fatal编程技术网

Ajax 后退按钮?

Ajax 后退按钮?,ajax,jquery,Ajax,Jquery,我有以下jQuery代码: $("a").click(function() { if ($(this).attr('href') != '#') { if (strpos($(this).attr('href'), 'mob.php') !== false) { $.ajax({ url: $(this).attr('href')+"&logo=0", cache: false,

我有以下jQuery代码:

$("a").click(function() {
    if ($(this).attr('href') != '#') {
        if (strpos($(this).attr('href'), 'mob.php') !== false) {
            $.ajax({
              url: $(this).attr('href')+"&logo=0",
              cache: false,
              success: function(html){
                $("#ajax").html(html);
              }
            });
            return false;
        }
    }
});
问题是,当有人按下后退按钮时,他们会离开网站,而不是返回上一页。这有什么办法吗