我正在使用fetch发送http请求,这是我的代码:
const fetch = require('fetch')
fetch('https://api.github.com/users/github')
.then(res => res.json())
.then(json => console.log(json));
但是,我得到了这个错误:
TypeError:提取不是函数
任何指导表示赞赏,谢谢!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句