twi*_*tch -2 javascript php jquery
我需要使用分割页面的URL #.
#
我正在使用location.split("#");但它似乎不适用于jQuery.
location.split("#");
我希望得到URL的最后一部分#,例如:
http://example.com/#/hello_world - >/hello_world http://example.com/folder/dir/#test - >测试
http://example.com/#/hello_world - >/hello_world
http://example.com/folder/dir/#test - >测试
我怎样才能做到这一点?
SLa*_*aks 6
你真的想要location.hash,它将返回你正在寻找的东西.
location.hash
归档时间:
12 年,8 月 前
查看次数:
93 次
最近记录: