Overview
JavaScript Object-Oriented Programming Guide reading notes ①
Here are just a few things I read about the JavaScript Object-oriented Programming guide. Those simple knowledge I did not record, I only record a few easy to omit or the wonderful knowledge point, later can see also as supplements of use!
Content
1. The enumeration properties are displayed with for-in loops.
2. When we completely rewrite the Prorotype property of an object, it is possible to have some negative effect on the object constructor property.
3.uber--how the child object accesses the Parent object triangle.uber = Twodshape.prototype
4. The type= "Text/javascript" of the tag can guarantee the sequence of code execution of JS.
The 5.setTimeout function returns a timeout ID that can be canceled with the cleartimeout () function using the timeout ID.
The first parameter of the 6.setTimeout function and the SetInterval function can be a string that can be executed by eval ().
The whitespace character in 7.DOM is also considered a text node; the comment is a comment node.
8.window.document is created by the HTMLDocument () constructor.
9. Use the DocumentElement property of the Document object to access the root node, which is the label.
The Short Line ("-") in the 10.css attribute is not available in JS. So we skip directly and capitalize the first letter of the next word. such as Padding-top written paddingtop.
11. Listeners defined by anonymous functions cannot be removed by RemoveEventListener.
12. The so-called pattern is actually a reusable solution for a particular type of problem.
13. The constructor returns the this pointer of the new object
JavaScript Object-Oriented Programming Guide reading notes ②