From 8f588d02c5c2b50955df8619006970af27f8e954 Mon Sep 17 00:00:00 2001 From: zaxlct Date: Wed, 13 Apr 2016 15:23:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=20if=20=E8=AF=AD=E5=8F=A5?= =?UTF-8?q?=E6=8B=AC=E5=8F=B7=E9=87=8C=E7=9A=84=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit handle() 函数里 有两个 if ,为什么里面的空格不同? --- docs/promise.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/promise.md b/docs/promise.md index 3659ba6..3674d97 100644 --- a/docs/promise.md +++ b/docs/promise.md @@ -122,7 +122,7 @@ var getJSON = function(url) { client.send(); function handler() { - if ( this.readyState !== 4 ) { + if (this.readyState !== 4) { return; } if (this.status === 200) {