摘要:
disableBFCacheBeforeHistoryTravel: function() { // https://www.google.com/search?q=BFCache // 情景:将要跳转到某一被 BFCache 了的页面,希望该页面强制刷新 // 用法:在 history.go() history.back() 之前调用此方法 ... 阅读全文
摘要:
preventBack: function(theurl){ var pushState = window.history.pushState; //点击物理返回键时,退出到跳转定义首页 if(pushState){ window.history.pushState({a: Math.random( 阅读全文