window.location.hash属性引见(转)

window.location.hash属性介绍(转)case #admin:}通过window.location.hashhash这个语句来调整地址栏的

window.location.hash属性介绍(转)


case "#admin":
window.location.hash属性引见(转)
}通过window.location.hash=hash这个语句来调整地址栏的地址,使得浏览器里边的“前进”、“后退”按钮能正常使用(实质上欺骗了浏览器)。然后再根据hash值的不同来显示不同的面板(用户可以收藏对应的面板了),这就使得Ajax页面的浏览趋于传统化了。