Fetch API 是 ECMAscript 功能吗?
Is the Fetch API an ECMAscript feature?
我查看了 MDN 资源 here as well as here, as well as the WhatWg Fetch Spec,尽管如此,我还是无法确定 Fetch API 是否属于ECMAScript 5、6、7 或其他。
我只能说它并没有在浏览器中一致地实现,在某些情况下是 not supported at all。
然而,规范明确将 Fetch 定义为 Javascript:
The Fetch Standard also defines the fetch() JavaScript API
来源:link
Fetch API 只是一个尚未在书本上针对 ES 7/8 的提案,还是它实际上是 ES6/7/8 的一部分,我的谷歌搜索技能让我失望了?
没有。它是标准机构 WHATWG 和 W3C 定义的 Web 平台 API 的一部分。
实现 Fetch API 的各种对象是 "host objects"。即,由托管运行时的应用程序(通常是浏览器)提供给用户空间 JavaScript 的对象。
I can't figure out if the Fetch API is part of ECMAScript 5, 6, 7 or otherwise
为此,您需要联系相应的 ES 规范:
- http://www.ecma-international.org/ecma-262/5.1/
- http://www.ecma-international.org/ecma-262/6.0/
- http://www.ecma-international.org/ecma-262/7.0/
不,fetch
不属于他们。它们只定义语言(语法和语义)和一些内置对象。您可以在不提供 fetch
.
的情况下实现兼容的 JS 引擎
Fetch standard is part of the web platform, underlying several other web standards. It states 它“ 还定义了 fetch()
JavaScript API” - 仅此而已,并且API 用于 JavaScript 语言。
没有。 window 对象公开的大部分 BOM (BrowserObjectModel) 是 WHATWG 和 W3C 的一部分。
示例:navigator、ajax、fetch 等,
存在 Fetch 规范 https://fetch.spec.whatwg.org/
如果您想在 w3c 中找到参考资料,请查找 Service Worker 并搜索术语 http fetch
ECMA 规范中将列出 ECMASCript 功能
https://www.ecma-international.org/ecma-262/7.0/index.html
注:BOM本身是一个非正式术语
更新 (2022)
Fetch 现在是 ECMAScript 的一部分。
我查看了 MDN 资源 here as well as here, as well as the WhatWg Fetch Spec,尽管如此,我还是无法确定 Fetch API 是否属于ECMAScript 5、6、7 或其他。
我只能说它并没有在浏览器中一致地实现,在某些情况下是 not supported at all。
然而,规范明确将 Fetch 定义为 Javascript:
The Fetch Standard also defines the fetch() JavaScript API
来源:link
Fetch API 只是一个尚未在书本上针对 ES 7/8 的提案,还是它实际上是 ES6/7/8 的一部分,我的谷歌搜索技能让我失望了?
没有。它是标准机构 WHATWG 和 W3C 定义的 Web 平台 API 的一部分。
实现 Fetch API 的各种对象是 "host objects"。即,由托管运行时的应用程序(通常是浏览器)提供给用户空间 JavaScript 的对象。
I can't figure out if the Fetch API is part of ECMAScript 5, 6, 7 or otherwise
为此,您需要联系相应的 ES 规范:
- http://www.ecma-international.org/ecma-262/5.1/
- http://www.ecma-international.org/ecma-262/6.0/
- http://www.ecma-international.org/ecma-262/7.0/
不,fetch
不属于他们。它们只定义语言(语法和语义)和一些内置对象。您可以在不提供 fetch
.
Fetch standard is part of the web platform, underlying several other web standards. It states 它“ 还定义了 fetch()
JavaScript API” - 仅此而已,并且API 用于 JavaScript 语言。
没有。 window 对象公开的大部分 BOM (BrowserObjectModel) 是 WHATWG 和 W3C 的一部分。 示例:navigator、ajax、fetch 等,
存在 Fetch 规范 https://fetch.spec.whatwg.org/
如果您想在 w3c 中找到参考资料,请查找 Service Worker 并搜索术语 http fetch
ECMA 规范中将列出 ECMASCript 功能 https://www.ecma-international.org/ecma-262/7.0/index.html
注:BOM本身是一个非正式术语
更新 (2022)
Fetch 现在是 ECMAScript 的一部分。