From 29c88ee19e7049c029d2cbca48e7eec4920afb36 Mon Sep 17 00:00:00 2001 From: Ruan Yifeng Date: Wed, 19 Nov 2014 17:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=AD=A3=E6=96=87=E5=AD=97=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/promise.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); ```