How to get request uri from location.href in javascript?

后端 未结 4 1798
余生分开走
余生分开走 2021-02-12 13:51

What I get from location.href is like this:

http://stackoverflow.com/questions/ask

But I only want to get questions/ask

4条回答
提交回复
热议问题