diff --git a/zh-cn/application-dev/reference/apis/js-apis-util.md b/zh-cn/application-dev/reference/apis/js-apis-util.md index e1c76e3221300fe2a7da2d327dc7d8966c408f37..f45fc2cacb20bbf143b5e3803ddcdbaf28c9adac 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-util.md +++ b/zh-cn/application-dev/reference/apis/js-apis-util.md @@ -116,7 +116,7 @@ promiseWrapper(original: (err: Object, value: Object) => void): Object - 示例: ``` function aysnFun(str1, str2, callback) { - if (typeof str1 === 'string' && typeof str1 === 'string') { + if (typeof str1 === 'string' && typeof str2 === 'string') { callback(null, str1 + str2); } else { callback('type err');