isomorphic

编程入门 行业动态 更新时间:2024-10-27 04:33:34
本文介绍了isomorphic-fetch和fetch之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

本文发布于:2023-11-24 19:02:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1626447.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:isomorphic

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!