I am looking for a good resource (comprehensive yet terse) that explains the Javascript object model: prototype, constructor, Function, Object, etc.
Surprisingly the开发者_如何学Pythonre aren't many resources out there that discuss this issue. The best I found, so far, is this: http://www.mollypages.org/misc/js.mp
Anyone familiar with other (hopefully better) explanations?
I rate book "Javascript:The Good Parts" by douglas Crockford as one of the best for understanding Javascript model and its nuances.
Online you may find this helpful too. http://kevlindev.com/tutorials/javascript/inheritance/index.htm http://www.packtpub.com/article/using-prototype-property-in-javascript
Hope it helps.
I'm not exactly sure what you mean by Javascript object model, but if it's inheritance you're after, here's a nice overview by Joost Diepenmaat, which includes few helpful diagrams. There's also a decent article on this subject by Andrea Giammarchi.
www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf
精彩评论