摘要:
window.onpageshow=function(e){ var a=e||window.event; alert(a.persisted); if(a.persisted){ //alert("页面读取了缓存") } } 阅读全文
摘要:
location是javascript里边管理地址栏的内置对象,比如location.href就管理页面的url,用location.href=url就可以直接将页面重定向url。而location.hash则可以用来获取或设置页面的标签值。比如http://domain/#admin的locati 阅读全文