0

到目前为止,我已经找到了地址(SWFaddress 的端口?)和 BBQ。存在哪些提供此功能的其他插件,哪些更好/标准?

到目前为止,我只构建了自己的 hackish #-reading 脚本,但需要一些可以处理多个变量的东西,即 #user=bob&sortBy=rating。

欢迎任何建议或意见。

谢谢!

4

1 回答 1

1

SWFAddress 和烧烤都很好。如果你想继续自己做,你可以分别使用window.location.hashwindow.location.search作为#查询字符串。

例如:

var hash = window.location.hash;
var qs = window.location.search.substring(1).split("&"); // this is an array for the QS

这有点 hacky,对于查询字符串的更强大的解决方案,您可以查看Querystring

于 2009-12-08T01:38:20.733 回答