gpt4 book ai didi

javascript - 在 Node.js 中查找内置对象和函数

转载 作者:行者123 更新时间:2023-11-30 18:44:36 26 4
gpt4 key购买 nike

我试图弄清楚 Node 中默认情况下所有可用的东西,更具体地说,V8 给表带来的东西(比如 JSON 对象)不是标准 javascript 规范的一部分。 Node 站点上的文档对于它的绑定(bind)很好,但是在谷歌搜索了一下之后,我并没有发现 V8 有什么额外的东西。有人知道一两个好的资源吗?

最佳答案

When developing in the browser there are many wonderful built in JavaScript functions that we can’t use because certain browsers don’t implement them. As a result, most developers never use them. In Node, however we can assume that everyone has the same JavaScript implementation and as such can use these wonderful functions and not implement them over and over in our own libraries.

The following is a list of some interesting api bits that aren’t considered safe to use in a web setting but are built in to node’s V8 engine.

ECMA 5 Mozilla Features Implemented in V8

关于javascript - 在 Node.js 中查找内置对象和函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5813050/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com