简体   繁体   English

Javascript内置对象的一个​​很好的参考?

[英]A good reference for Javascript built-in objects?

Where can I find a good list and description of Javascript built-in objects? 我在哪里可以找到Javascript内置对象的良好列表和描述?

I know there are things like Date, Array , String , window , Number , RegExp etc, but I can't find what methods they have anywhere. 我知道有些东西,比如Date, ArrayStringwindowNumberRegExp等,但是我找不到它们有什么方法。 Is there a single authoritative place containing this information, like php.net does for for PHP? 是否有一个包含此信息的权威位置,如php.net为PHP所做的那样?

I find Mozilla's MDN to be pretty comprehensive. 我发现Mozilla的MDN非常全面。

As for seeing what features are supported cross browser or not, quirksmode is great. 至于看到跨浏览器支持哪些功能, quirksmode很棒。 (Although I think there are other sources that are better for the newfangled html5 stuff) (虽然我认为还有其他来源更适合新奇的html5内容)

您是否在Mozilla Developer Network上看过JavaScript参考

As mentioned in a comment, the ECMA specification (pdf), on which Javascript is based, is the official place to find that information. 正如评论中所提到的,Javascript所基于的ECMA规范 (pdf)是查找该信息的官方地点。

window , incidentally, is technically not a built-in object, at least not by that name. 顺便提一下, window在技​​术上不是内置对象,至少不是那个名称。 It's known as the host object, which happens to be called window in web browsers, but is actually implementation-dependent. 它被称为主机对象,恰好在Web浏览器中称为窗口,但实际上与实现有关。 The host object is where global variables are stored. 宿主对象是存储全局变量的地方。

That's one of the neat things you find out when you * cough * read the spec (pdf). 当你*咳嗽* 阅读规范 (pdf)时,这是你发现的一个整洁的东西。

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

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