Again such as "http://loadpage.b0.upaiyun.com/#http://www.baidu.com" (in parentheses is a full address)
Access to this page is redirected to the URL after "#".
Can I get the content after "#"? Is it in the front-end with JS or on the server to get it?
Reply content:
Again such as "http://loadpage.b0.upaiyun.com/#http://www.baidu.com" (in parentheses is a full address)
Access to this page is redirected to the URL after "#".
Can I get the content after "#"? Is it in the front-end with JS or on the server to get it?
In JS use location.hash
is #
and the content behind it.
As below, suppose your filename index.html, when you visit index.html#windows.com, will jump to windows.com
Of course you don't want to get the characters behind the #, but instead get the contents of the query, that is, the following characters:
Window.location.search
, note that it is best not to mix