diff --git a/docs/promise.md b/docs/promise.md index 4a274eb..5fd65e7 100644 --- a/docs/promise.md +++ b/docs/promise.md @@ -72,9 +72,9 @@ var getJSON = function(url) { }; getJSON("/posts.json").then(function(json) { - console.log('Contents: ' + value); + console.log('Contents: ' + json); }, function(error) { - console.error('出错了', reason); + console.error('出错了', error); }); ```