Js后退刷新
$(function () {
a= get('refresh');
if(a=null || a=''){
set('refresh','refresh')
}
if(a==='refresh'){
localStorage.clear();
location.reload()
}
})
function set(Key,val) {
return localStorage.setItem(Key, val);
}
function get(Key) {
return localStorage.getItem(Key);
}