forked from GitHub/gf-core
Omit redundant trailing "&" in jsonp url
This commit is contained in:
@@ -16,8 +16,8 @@ function jsonp(url,callback)
|
|||||||
url += "&jsonp="
|
url += "&jsonp="
|
||||||
else
|
else
|
||||||
url += "?jsonp="
|
url += "?jsonp="
|
||||||
url += callback + "&";
|
url += callback;
|
||||||
//url += new Date().getTime().toString(); // prevent caching
|
//url += "&" + new Date().getTime().toString(); // prevent caching
|
||||||
|
|
||||||
var script = empty("script");
|
var script = empty("script");
|
||||||
script.setAttribute("src",url);
|
script.setAttribute("src",url);
|
||||||
|
|||||||
Reference in New Issue
Block a user