且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在"somepage.php#name"中的散列后获取值?

更新时间:2022-03-14 23:10:07

我认为这是不可能的.浏览器将#后面的字符串解释为当前页面内的锚点名称.它不会传递到服务器.

I don't think it's possible. The string after # is interpreted by the browser as an anchor name within the current page. It is not passed to the server.