mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 19:22:21 +00:00
commit
5cc54128ab
23
.gitignore
vendored
23
.gitignore
vendored
@ -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/
|
||||||
|
|
||||||
|
|
||||||
|
@ -894,8 +894,8 @@ Fetch API取回的数据,就是`ArrayBuffer`对象。
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
fetch(url)
|
fetch(url)
|
||||||
.then(function(request){
|
.then(function(response){
|
||||||
return request.arrayBuffer()
|
return response.arrayBuffer()
|
||||||
})
|
})
|
||||||
.then(function(arrayBuffer){
|
.then(function(arrayBuffer){
|
||||||
// ...
|
// ...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user