Skip to content

Commit b7a4a8b

Browse files
author
YuChengKai
authored
Merge pull request #100 from naihe138/master
fix the Browser/JSONP '&'
2 parents f43faaf + 7593b60 commit b7a4a8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Browser/browser-ch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function jsonp(url, jsonpCallback, success) {
128128
script.async = true;
129129
script.type = "text/javascript";
130130
window[jsonpCallback] = function(data) {
131-
success & success(data);
131+
success && success(data);
132132
};
133133
document.body.appendChild(script);
134134
}

Browser/browser-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function jsonp(url, jsonpCallback, success) {
128128
script.async = true;
129129
script.type = "text/javascript";
130130
window[jsonpCallback] = function(data) {
131-
success & success(data);
131+
success && success(data);
132132
};
133133
document.body.appendChild(script);
134134
}

0 commit comments

Comments
 (0)