是否window.location.hash包含url部分的编码或解码表示?
window.location.hash
当我打开相同的URL(http://localhost/something/#%C3%BC其中,%C3%BC转化为ü在Firefox 3.5和Internet Explorer 8),我得到不同的值document.location.hash:
http://localhost/something/#%C3%BC
%C3%BC
ü
document.location.hash
#%C3%BC
#ü
有没有办法在两个浏览器中获得一个变体?
html javascript url encoding fragment-identifier
encoding ×1
fragment-identifier ×1
html ×1
javascript ×1
url ×1