Fetch API是ECMAscript功能吗? [英] Is the Fetch API an ECMAscript feature?

查看:116
本文介绍了Fetch API是ECMAscript功能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此处浏览了MDN资源以及此处,以及 WhatWg获取规范,对于 Fetch API 我无法确定的所有内容是ECMAScript 5、6、7或其他版本的一部分.

I've looked through the MDN resources here as well as here, as well as the WhatWg Fetch Spec, and for all that I can't figure out if the Fetch API is part of ECMAScript 5, 6, 7 or otherwise.

我能说的是,它在各个浏览器中的实现方式不一致,并且在某些情况下在以下位置不支持全部.

All I can tell is that it isn't implemented consistently across browsers, and in some cases is not supported at all.

然而,该规范肯定将Fetch定义为Javascript:

Yet the spec definitely defines Fetch as Javascript:

提取标准还定义了fetch()JavaScript API

The Fetch Standard also defines the fetch() JavaScript API

来源:链接

Fetch API只是对ES 7/8而言尚不在书中的提案,还是实际上是ES6/7/8的一部分,并且我的Google搜索功能使我失败了?

Is the Fetch API simply a proposal that is not on the books yet for ES 7/8, or is it actually part of ES6/7/8 and my Googling skills have failed me?

推荐答案

否.它是标准组织WHATWG和W3C定义的Web平台API的一部分.

No. It's part of the Web platform API defined by the standards bodies WHATWG and W3C.

实现Fetch API的各种对象是主机对象".也就是说,由托管运行时的应用程序(通常是浏览器)提供给用户界面JavaScript的对象.

The various objects that implement the Fetch API are "host objects". i.e. objects exposed to userland JavaScript that are provided by the application hosting the runtime (usually a browser).

这篇关于Fetch API是ECMAscript功能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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