forked from 0x2620/oxjs
append version, not random
This commit is contained in:
parent
2cbcb9d086
commit
db0a2394d9
2 changed files with 7 additions and 3 deletions
|
|
@ -40,7 +40,11 @@ window.Ox = {
|
|||
|
||||
function loadJSON(callback) {
|
||||
var req = new XMLHttpRequest();
|
||||
req.open('GET', path + 'Ox/json/Ox.json?' + Ox.random(1000000), true);
|
||||
req.open(
|
||||
'GET',
|
||||
path + 'Ox/json/Ox.json?' + Math.floor(Math.random() * 1000000),
|
||||
true
|
||||
);
|
||||
req.onreadystatechange = function() {
|
||||
if (req.readyState == 4) {
|
||||
if (req.status == 200) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue