Lea Verou 23.05.2011

Get your hash — the bulletproof way

Przeczytaj oryginał

This article explains the proper way to extract the hash value from `window.location.hash` in JavaScript. It critiques common but fragile code snippets, highlights issues with unicode characters and empty hashes, and recommends using `location.hash.substring(1)` or `slice(1)` for a robust solution.

Get your hash — the bulletproof way

komentarzy

Brak komentarzy

Bądź pierwszy, który podzieli się swoimi myślami!

Rozszerzenie przeglądarki

Uzyskaj natychmiastowy dostęp do AllDevBlogs z przeglądarki

Tydzień

No top articles yet