示例:
www.site.com/index.php#hello
使用jQuery,我想将值hello
放入一个变量中:
var type = …
示例:
www.site.com/index.php#hello
使用jQuery,我想将值hello
放入一个变量中:
var type = …
不需要jQuery
var type = window.location.hash.substr(1);