//解决浏览器缓存 或 刷新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;
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2021-11-20
  • 2021-08-29
  • 2022-02-13
  • 2022-12-23
猜你喜欢
  • 2021-10-22
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2021-08-05
  • 2022-01-23
  • 2021-10-27
相关资源
相似解决方案