1fetch('https://www.website.com/api/user/1') 2 .then(res => res.json()) 3 .then(res => console.log(res))
本题为"单选题"
参考答案:
正确选项:C:前一个.then()中回调方法返回的结果
第二个.then
中res
的值等于前一个.then
中的回调函数返回的值。 你可以像这样继续链接.then
,将值传递给下一个处理程序。
最近更新时间:2021-07-03
题库维护不易,您的支持就是我们最大的动力!