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?
- 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
4 Answers
Reset to default 7I 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
版权声明:本文标题:A good reference for Javascript built-in objects? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741297984a2370926.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论