📜  javascript fetch 从 promise 获取数据 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:43.180000             🧑  作者: Mango

代码示例1
var x = fetch(SOME_URL, SOME_POST_DATA)
    .then((response) => response.json())
    .then((responseJSON) => {
       // do stuff with responseJSON here...
       console.log(responseJSON);
    });