简体   繁体   English

Javascript 标准库是否包含 http object?

[英]Does the Javascript standard library contain a http object?

I am looking to do some custom scripting in Airtable, which says that "you can use anything from the JavaScript standard library, except for DOM APIs that interact with HTML on the page".我希望在 Airtable 中编写一些自定义脚本,上面写着“您可以使用 JavaScript 标准库中的任何内容,但与页面上的 HTML 交互的 DOM API 除外”。

I want the script to interact with the gsuite API, but can't seem to find any reference in the javascript standard library documentation on making http/s calls.我希望脚本与 gsuite API 交互,但似乎在 javascript 标准库文档中找不到任何关于进行 http/s 调用的参考。

I'm a newbie so may be completely missing something, so any guidance is appreciated.我是一个新手,所以可能完全错过了一些东西,所以任何指导表示赞赏。

XMLHttpRequest might be what you are searching for. XMLHttpRequest 可能就是您要搜索的内容。 This MDN link should help: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest这个 MDN 链接应该有帮助:https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM