//解决浏览器缓存
function timestamp(url){
// var getTimestamp=Math.random();
var getTimestamp=new
Date().getTime();
if(url.indexOf("?")>-1){
url=url+"×tamp="+getTimestamp
}else{
url=url+"?timestamp="+getTimestamp
}
return url;
}
js 给url添加时间戳 解决浏览器缓存,布布扣,bubuko.com
原文:http://www.cnblogs.com/baoyiluo/p/3571016.html