我在这里看到了两种不同的访存方式:
I've seen two different fetch here:
-
github/github/fetch
github/matthew-andrews/isomorphic-fetch
有人可以告诉我两者之间的区别吗?
Can someone tell me the difference between the two?
PS:我已经阅读了README.md,但仍然没有区别.上次我检查时,同构意味着它具有相似的形式或关系.对我来说仍然没有意义.
PS: I've read the README.md but I still didn't get the difference. Last time I checked, Isomorphic means it has similar form or relation. It still doesn't make sense to me.
推荐答案FETCH 是适用于浏览器的polyfill没有提取功能( caniuse/#search=fetch ).它将获取功能添加到您的浏览器窗口对象.
FETCH is polyfill for browsers which don't have fetch function (caniuse/#search=fetch). It will add fetch function to your browser window object.
isomorphic-fetch 是对node.js和浏览器的抓取的实现,建立在提取polyfill之上.
While isomorphic-fetch is implementation of fetch for both node.js and browser, built on top of fetch polyfill.
更多推荐
isomorphic
发布评论