Home  >  Article  >  Backend Development  >  如何点击书签后获取当前的URL?

如何点击书签后获取当前的URL?

WBOY
WBOYOriginal
2016-06-23 14:39:431060browse

就是书签的这个页面如果获取到点击书签前的页面的URL?


回复讨论(解决方案)

你说的是瞄点吧。

你说的是瞄点吧。
不是的··
  比如我现在在访问新浪网,然后点击书签去我自己的网站,我想获取到之前新浪网的URL

js 调用 document.referrer
php 调用 $_SERVER['HTTP_REFERER']

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn