使用#tag获取完整的URL [英] Getting FULL URL with #tag

查看:98
本文介绍了使用#tag获取完整的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图在PHP中打印$ _SERVER数组,但是我找不到我想要的东西:

Tried to print the $_SERVER array in PHP, yet I can't find what I want:

http://www.domain.com/#sometaginpage

我想要"sometaginpage".

I want the "sometaginpage".

帮助.谢谢!

推荐答案

浏览器实际上不会将哈希(#)之后的任何内容发送到服务器,因为它是在浏览器中解析的.

The browser doesn't actually send anything that comes after the hash(#) to the server because it is resolved within the browser.

这篇关于使用#tag获取完整的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆