【发布时间】:2013-04-28 21:24:02
【问题描述】:
我有这个:
http://127.0.0.1:8000/found-locations/?state=--&km=km
我想要这个:
found-locations/?state=--&km=km
我如何在 javascript 中做到这一点?
我试过window.location.href,但它给了我整个网址
我试过window.location.pathname.substr(1),但它给了我found-locations/
【问题讨论】:
标签: javascript url uri