Created
July 8, 2015 06:46
-
-
Save ilake/df13e2306f142f460b07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch(BASE_URL + url, request_objs) | |
.then((response) => response.json()) | |
.then((responseData) => { | |
console.log({"responseData": responseData}); | |
responseHandler(responseData) | |
}) | |
VS | |
fetch(BASE_URL + url, request_objs) | |
.then((response) => {response.json()}) | |
.then((responseData) => { | |
console.log({"responseData": responseData}); | |
responseHandler(responseData) | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.then((response) => {response.json()})
response.json() 的部份 有被{} 包起來跟沒包起來差在哪阿