返回上一页方法

  1. window.history.go(-1); //返回上一页

  2. window.history.back(); //返回上一页

  3. window.location.go(-1); //刷新上一页

  4. <a href="javascript:history.back(-1);">返回上一页</a>

        javascript:history.之间不能有空格

  1. window.history.back();location.reload();//强行刷新(返回上一页刷新页面)

猜你喜欢

转载自blog.csdn.net/lmp5023/article/details/88054406