Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
f8ee507a
Commit
f8ee507a
authored
Jan 27, 2021
by
季圣华
Browse files
增加ajax全局时间戳的配置
parent
1deb0fe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/js/common/common.js
View file @
f8ee507a
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment