Created
June 9, 2017 08:25
-
-
Save kmsheng/b005fe2c18db51e42144f388dcaac3a7 to your computer and use it in GitHub Desktop.
This file contains 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
const URL = 'https://api.dharma-treasure.org/kdbs/jiangkangyur/pbs/1-1-1b'; | |
let result = ''; | |
fetch(URL).then((res) => res.json()) | |
.then((json) => { | |
result = json; | |
console.log('inside', result); | |
}); | |
console.log('outside', result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment