isomorphic-fetch和fetch之间有什么区别? [英] What is the difference between isomorphic-fetch and fetch?

查看:292
本文介绍了isomorphic-fetch和fetch之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里看到了两种不同的访存方式:

I've seen two different fetch here:

https://github.com/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.com/#search=fetch ).它将获取功能添加到您的浏览器窗口对象.

FETCH is polyfill for browsers which don't have fetch function (caniuse.com/#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-fetch和fetch之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆