After reading the basic Ajax tutorial, take notes.
I have not understood prototype inheritance and class inheritance. The following describes the generic functions written by Bob Clary:
Function createinheritance (parent, child) {var property; For (property in parent) {If (! Child [property]) {Child [property] = parent [property] ;}}
Bob Clary'sCodeFrom Page 148th of Ajax basic tutorial. This function is a reflection in Java/C.
To avoid the disadvantages of both and combine the advantages of both, the VaR class = new Native () {} of mootools may be such an "Oop idea.
Therefore, the class instance is: objecta = new classname ([property]).
Let's talk about my experience in "ajax basic tutorial", because xhr has mastered it early, so the content in Chapter 3 and Chapter 4 is mostly purely flipped, and innerhtml is what I learned in this book, cross-browser compatibility in the appendix is also a big gain. In addition, the two inherited programming ideas of JavaScript above are also gains.