简体   繁体   中英

Javascript properties and methods

I'm just a beginner learning how to use javascript by manipulating the DOM and I was just wondering if there was a way to see a reference for all methods and properties. Something like what jquery provides for its methods on the jquery website. Is there some way I can find a list of all of them? I think I saw a list of methods on the javascript console, but I don't know how to access them. Thanks.

For JavaScript, there's the specification but it's fairly heavy going. There's also MDN's JavaScript pages which are a lot more accessible and generally accurate (but note that some of the shims/polyfill code you find in MDN — as opposed to the reference material — for things that not all browsers have are extremely variable quality community-contributed content — but that's a side issue). Web searches will also pop up links to w3schools, which I would not recommend.

For the DOM (which is an entirely separate thing), there are the various DOM specs (probably best to start with DOM3 Core and then branch out); the HTML5 spec , which increasingly has DOM stuff in it as well, particularly in the web application APIs section ; and MDN .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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