Skip to content

Commit 7593b60

Browse files
author
何文林
committed
fix the Browser/JSONP '&'
1 parent f43faaf commit 7593b60

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)