解决浏览器缓存 或 刷新URL地址

//解决浏览器缓存 或 刷新URL地址
CloudShareCommon.prototype.timestamp = function (url) {
    var getTimestamp=new Date().getTime(); // 获取时间戳
    if (url.indexOf("?") > -1) { // 地址已含 “ ? ”符号
        url = url + "&timestamp=" + getTimestamp;
    }else { //地址还没有 “ ? ”符号
        url = url + "?timestamp=" + getTimestamp;
    }
    return url;
}
原文地址:https://www.cnblogs.com/queende7/p/8668877.html