#在URL中使用Javascript

# in URL with Javascript?

本文关键字:Javascript URL      更新时间:2024-04-15

我正在实现一个带有完全Ajaxified接口(jQuery)库的CMS。一切都通过Ajax调用等方式发生在一个index.php文件中。我该怎么做:

www.mysite.com/dashboard#statistics 

什么时候在统计页面等?

document.location.hash = 'statistics';

www.mysite.com/dashboard/#!/statistics会更好——这是谷歌提出的格式。http://searchengineland.com/googles-proposal-for-crawling-ajax-may-be-live-34411