de la fenêtre.emplacement.hash retourne hash tag en face de valeur

J'ai le code suivant dans MVC3 vue:

 $(document).ready(function () {
    if (window.location.hash) {
        var manager= new Manager();

        manager.doSomeStuff(window.location.hash);
    }
});

La chose intéressante est que quand il n'y a pas de hash tag dans l'URL, ou il n'existe qu'un hash tag exemple:

http://localhost:1223/Index/AboutUs

http://localhost:1223/Index/AboutUs#

Lorsque le window.location.hash est vide et la fonction n'est pas exécutée.
Mais quand il y a un peu de valeur dans le hash tag:

http://localhost:1223/Index/AboutUs#categoryId=5&manufacturerId=8

La valeur dans la window.location.hash est #categoryId=5&manufacturerId=8

Pouvez-vous m'expliquer pourquoi le # balise est inclus dans la valeur et pourquoi, quand il n'y a pas de valeur après la # tag, le window.location.hash est vide.

  • Oui, il le fait ???