From 1f7adc65f48d440b781b3683d497fe1189c33142 Mon Sep 17 00:00:00 2001 From: Birkhoff Lee Date: Wed, 27 Sep 2017 19:05:56 -0500 Subject: [PATCH 1/3] Correctly specifying document charset --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 64553c1..4af90ad 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - + From 273b2ba54129c313993c312bc0499aaf9f72fd89 Mon Sep 17 00:00:00 2001 From: Birkhoff Lee Date: Wed, 27 Sep 2017 19:07:30 -0500 Subject: [PATCH 2/3] Fix typo --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 4af90ad..66a6360 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@
back to top
edit
Loading ...
-
Opps! ... File not found!
+
Oops! ... File not found!
上一章
下一章
From f3dbf39b9c18192f83116ea06a41e5aeac7a6e22 Mon Sep 17 00:00:00 2001 From: lihln Date: Thu, 28 Sep 2017 18:15:58 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fetch=E8=AF=AD=E4=B9=89=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 23 ++++++++++++++++++++++- docs/arraybuffer.md | 4 ++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c8f50f7..fb8cf1e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,22 @@ -npm-debug.log +git # OS X +Icon? +._* + +# Windows +Thumbs.db +ehthumbs.db +Desktop.ini + +# Linux +.directory +*~ + +# npm +node_modules +dist +*.gz + +# webstorm +.idea/ + + diff --git a/docs/arraybuffer.md b/docs/arraybuffer.md index 9932dc2..3b7628c 100644 --- a/docs/arraybuffer.md +++ b/docs/arraybuffer.md @@ -894,8 +894,8 @@ Fetch API取回的数据,就是`ArrayBuffer`对象。 ```javascript fetch(url) -.then(function(request){ - return request.arrayBuffer() +.then(function(response){ + return response.arrayBuffer() }) .then(function(arrayBuffer){ // ...