返回上一页面并刷新 window.location.href = document.referrer; 跳转至另一个页面 window.location.href = ‘/admin’; 图为登录页面实现时的代码