admin管理员组

文章数量:1278855

Where can I find a good list and description of Javascript built-in objects?

I know there are things like Date, Array, String, window, Number, RegExp etc, but I can't find what methods they have anywhere. Is there a single authoritative place containing this information, like php does for for PHP?

Where can I find a good list and description of Javascript built-in objects?

I know there are things like Date, Array, String, window, Number, RegExp etc, but I can't find what methods they have anywhere. Is there a single authoritative place containing this information, like php does for for PHP?

Share Improve this question edited Nov 20, 2011 at 2:20 Clive 37k8 gold badges89 silver badges113 bronze badges asked Nov 19, 2011 at 17:33 Jim NickersonJim Nickerson 1011 silver badge6 bronze badges 1
  • Ahem... the ECMAScript specification? One would assume that the specification of a programming language defines the built-in object of that language... – Šime Vidas Commented Nov 19, 2011 at 17:44
Add a ment  | 

4 Answers 4

Reset to default 7

I find Mozilla's MDN to be pretty prehensive.

As for seeing what features are supported cross browser or not, quirksmode is great. (Although I think there are other sources that are better for the newfangled html5 stuff)

Have you seen JavaScript Reference on Mozilla Developer Network?

As mentioned in a ment, the ECMA specification (pdf), on which Javascript is based, is the official place to find that information.

window, incidentally, is technically not a built-in object, at least not by that name. It's known as the host object, which happens to be called window in web browsers, but is actually implementation-dependent. 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).

I was googling for the same thing (equivalent to php for php) and found the following

https://developer.mozilla/en-US/docs/Web/JavaScript/Guide/Functions#Predefined_functions

http://msdn.microsoft./en-us/library/ie/12k71sw7(v=vs.94).aspx

本文标签: A good reference for Javascript builtin objectsStack Overflow