Merge pull request #509 from lhlPersonal/master

fetch语义错误
This commit is contained in:
Ruan YiFeng
2017-09-30 20:49:12 +08:00
committed by GitHub
2 changed files with 24 additions and 3 deletions
+22 -1
View File
@@ -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/
+2 -2
View File
@@ -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){
// ...