document.referrer

用于获取当前页面的前一个页面的URL,一般来和history.back重复,但是可以用于返回无页面时跳转

原文地址:https://www.cnblogs.com/yk-ontheway/p/6891449.html