2016-02-27 64 views

回答

2

请注意,这不是一个URL,因为它错过了一个计划。我假设你的意思http(或https),这样的URL将

http://www.example.com/#/bar/1 

的(第一个)#开始fragment identifier component。因此,/bar/1是该URL的片段。 (/ is allowed in a fragment;请参阅list of all allowed characters in the fragment identifier component。)

这取决于网站是否以及以何种方式使用此片段。通常这种URL设计被通过JavaScript提供内容的网站使用。

+0

是的,** http:// **是从我身边推测出来的。并感谢您的回答。 – Silencer310

0

它用于使用散列进行页面重新加载。

有关更多信息,请参见Mozillas window.location