JavaScript Object-Oriented Programming Guide reading notes ②

Source: Internet
Author: User

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 ②

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.