选择题1542/1620下面代码的输出是什么?

1fetch('https://www.website.com/api/user/1') 2 .then(res => res.json()) 3 .then(res => console.log(res))
难度:
2021-07-02 创建

本题为"单选题"

参考答案:

正确选项:C:前一个.then()中回调方法返回的结果

第二个.thenres的值等于前一个.then中的回调函数返回的值。 你可以像这样继续链接.then,将值传递给下一个处理程序。

最近更新时间:2021-07-03

赞赏支持

题库维护不易,您的支持就是我们最大的动力!