从jquery获取http referrer的正确方法

ver*_*crp 21 javascript jquery

命令$(document).referrer是使用Jquery获取referrer的正确方法吗?

Mat*_*hen 63

怎么样:

document.referrer
Run Code Online (Sandbox Code Playgroud)

  • 如果您发现`document.referrer`为null,这里有一篇有用的文章.(最重要的是确保您的网站是https)http://smerity.com/articles/2013/where_did_all_the_http_referrers_go.html https://www.facebook.com/notes/facebook-engineering/protecting-privacy-with-引荐/ 392382738919 (2认同)