使用pushstate,指定回退地址
history.pushState(null,"testname", window.location.href);
    window.addEventListener('popstate', function(evt){
        window.location.replace('http://www.baidu.com')
    }, false);
history.pushState(null,"testname", window.location.href);
    window.addEventListener('popstate', function(evt){
        window.location.replace('http://www.baidu.com')
    }, false);
