2012年8月22日
摘要: 获取去location.hash的一个问题获取去location.hash的一个问题谈论这个的好像不是特别多,应用场景比如想gmail,google reader这样的Ajax应用,会将参数放在#后面, https://www.google.com.hk/reader/view/#stream/xxxxx在这里如果直接取location.hash是没问题的console.log(location.hash)//-> #stream/xxxxx当hash后面还有带?的参数的时候,比如 https://www.google.com.hk/reader/view/#stream/xxxxx?l 阅读全文
posted @ 2012-08-22 21:46 wewe.Tom 阅读(338) 评论(0) 推荐(0) 编辑