$.ajaxSetup({ beforeSend: function(jqXHR, settings) { //在请求前给修改url(增加一个时间戳参数) settings.url += settings.url.match(/\?/) ? "&" : "?"; settings.url += "v=" + new Date().getTime(); }, }); Last modification:August 20, 2020 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 295 如果觉得我的文章对你有用,请随意赞赏
Comment here is closed