location.href可以实现重定向,且浏览器有记录历史,可以返回 获取参数:let params = new URLSearchParams(location.search);params.get(“属性名”)