Skip to content

Commit

Permalink
Merge pull request #1 from givebest/patch-1
Browse files Browse the repository at this point in the history
Update ajax.js
  • Loading branch information
littleBlack520 authored Jul 29, 2016
2 parents 334b17b + 98babf1 commit 5270f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function ajax(options) {
document.body.removeChild(script);
success(data);
}
script.src = url + (url.indexOf("?") > -1 ? "" : "?") + "callback=" + callback;
script.src = url + (url.indexOf("?") > -1 ? "&" : "?") + "callback=" + callback;
script.type = "text/javascript";
document.body.appendChild(script);
setTime(callback, script);
Expand Down Expand Up @@ -134,4 +134,4 @@ function ajax(options) {
} else {
createXHR();
}
}
}

0 comments on commit 5270f93

Please sign in to comment.