返回上一页: location.href = history.back(); 返回上一页并刷新 location.href = document.referrer; 返回上两页: history.go(-2);