[An in-depth understanding of javascript prototype and closure series] It took half a month to complete the draft, seek recommendations, and gain an in-depth understanding of javascript

Source: Internet
Author: User

[An in-depth understanding of javascript prototype and closure series] It took half a month to complete the draft, seek recommendations, and gain an in-depth understanding of javascript

As you can see from the following directory, this series has 16 articles, plus two supplemented articles, a total of 18 articles. It was written for half a month and started in December September 17. When every article is updated, the reader's feedback is still acceptable. Although it is not mentioned in the headlines, it is also well-behaved. Some people who read the article and have comments. Especially when we talk about closures later.

I have never done any basic tutorials, because the basic tutorials are difficult to talk about. Therefore, some basic tutorials are available on the Internet. You can search for them as you like. If it's a big deal, you can buy a book. Think about the prototype and closure of a slightly more advanced tutorial, think carefully, but also some really, really can tell their own ideas.

In my opinion, as long as I am immersed in what I want to do, I must think, think, and think differently from other people. Including the length of the article, the expression of language, the illustration and text, and the ideas to explain ...... All should be taken into consideration from the reader's perspective.

Starting from middle August, I started thinking, taking notes, checking relevant materials, and starting to start writing in September 17. It is not easy to write it all the way. I am not a professional writer, and I am also doing it in my spare time. (This article was written before work today. Get up early for a while ). It is not easy. I also hope you can recommend more and repost more. If you have any questions, please contact us.

Thx!

Understanding javascript prototype and closure (0)-directory

Understanding javascript prototype and closure (1)-everything is an object

Understanding javascript prototype and closure (2)-Relationship between functions and objects

Understanding javascript prototype and closure (3)-prototype

Understanding javascript prototype and closure (4)-implicit prototype

Understanding javascript prototype and closure (5)-instanceof

Understanding javascript prototype and closure (6)-Inheritance

Understanding javascript prototype and closure (7)-prototype flexibility

A deep understanding of javascript prototype and closure (8) -- A Brief Description of the execution Context

A deep understanding of javascript prototype and closure (9)-a brief description of the execution Context

Understanding javascript prototype and closure (10)-this

Understanding javascript prototype and closure (11)-execution context Stack

Understanding javascript prototype and closure (12)-Introduction [Scope]

Understanding javascript prototype and closure (13)-scope and context]

Understanding javascript prototype and closure (14)-from free variables to scope chain]

Understanding javascript prototype and closure (15)-Closure

Understanding javascript prototype and closure (16)-conclusion

Post-completion:

Understanding javascript prototype and closure (17) in depth -- complementing this

In-depth understanding of javascript prototype and closure (18)-addition: Relationship between context and scope

---------------------------------------------------------------------------

Welcome to my Weibo.

You are also welcome to follow my other Tutorials:

Microsoft petshop4.0 source code explanation video json2.js source code interpretation video

--------------------------------------------------------------------------


Javascript closure and prototype

Since your B is used as a parameter of object a, it must be used as an attribute that needs to be stored and used for multiple times. If only a few methods call B, just let B be the parameter of the method ~
<Script type = "text/javascript">
Function (){}

A. prototype. say = function (B ){
Alert (B );
}
Var x = new ();
X. say ("xx ");
</Script>

If it is your incoming B parameter, it will be used in many places. It seems quite cost-effective to add a type attribute ~~

Function a (B ){
This. type = B;
}

I want to learn more about the javascript operating mechanism, such as closures, prototype chains, and scopes. What books do I recommend?

The above two authoritative guides and advanced programming can be viewed.

I recommend the essence of the javascript language written by Zhou aimin

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.