diff --git a/erp_web/js/common/common.js b/erp_web/js/common/common.js index 488f2904..31fdc7d3 100644 --- a/erp_web/js/common/common.js +++ b/erp_web/js/common/common.js @@ -7,6 +7,15 @@ s.parentNode.insertBefore(hm, s); })(); + //全局配置 + $.ajaxSetup({ + beforeSend: function(jqXHR, settings) { + //在请求前给修改url(增加一个时间戳参数) + settings.url += settings.url.match(/\?/) ? "&" : "?"; + settings.url += "t=" + new Date().getTime(); + } + }); + $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray();