添加时间戳
var timestamp = new Date().getTime();
页面跳转方法和为了禁用浏览器缓存在地址后面加上事件戳
function redirect(url) {
var flag = url.indexOf('?');
if (flag > 0) {
window.location.href = url + '&_='+ timestamp;
return;
}
window.location.href = url + '?_='+ timestamp;
}