How to get hash in a server side language?

前端 未结 1 1033
無奈伤痛
無奈伤痛 2020-12-07 04:54

As far as I know, there\'s no way to get url hash in a server side language since hash urls are not being sent to the server side. One of my co-workers told me that it shoul

1条回答
  •  太阳男子
    2020-12-07 05:16

    Short answer: no, it's a client side only thing.

    Slightly longer: It's called Fragment identifier and is client side only - browser doesn't send that part of the url to the server. It's not possible in any language unless you are using some browser implementation (or software) which would send that part of url to the server. Reference: http://en.wikipedia.org/wiki/Fragment_identifier

    0 讨论(0)
提交回复
热议问题