Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to learn JavaScript easily

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to easily learn JavaScript, I believe that many inexperienced people are at a loss about it. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

The impression of js on beginners is always "messy and messy". I believe that many beginners are looking for an easy way to learn js. I try to sum up my experience in learning js for many years, hoping to explore an "easy way to learn js" for later learners. The reason why js gives people that feeling is mostly due to the following characteristics:

A: the knowledge itself is abstract and obscure, such as closures, built-in objects, and DOM.

B: there are a lot of contents, such as function libraries and object libraries.

C: mix a variety of programming ideas. It involves not only the idea of process-oriented programming, but also the idea of object-oriented programming. At the same time, its object-oriented programming language is not the same as other programming languages (such as: Clippers, Java and PHP). It's as if it's new, which makes you doubt the object-oriented you've learned.

D: after hard study, it seems to be out of touch with practical application. Usually after learning the basics of js for a long time, you also know a thing or two about variables, functions and objects, but when it comes to the company's development project, it is difficult to start. Because companies usually use its derivative libraries directly when developing actual projects, such as jquery,angular,boostrap,amaze,layui,ueditor, etc., and there are so many of these libraries, but also have their own difficulties. You don't know which one to learn, and you even wonder if you are learning js. Like there are multiple versions of js, you can never finish it.

So, how can you learn easily or even easily in the field of js? I summed up some practical js learning experiences:

First of all, we must hold on to its position.

Do not forget all the time, otherwise it is easy to make the mistake of "blinding one leaf without seeing Mount Tai". Do not learn for a long time to know that js is a programming language, that is, to write code, and the characteristic is that it is a mess, so you can't learn js well. It is necessary to grasp its position from time to time, exactly its position in the whole Web: it belongs to the core of the front end, which is mainly used to manipulate and readjust the DOM, and to modify the DOM structure to achieve the purpose of modifying the page effect. To use this central idea to guide all subsequent js learning, and form a conditioned response.

Have a clear learning route

This can only be provided by someone who has been there for you. My learning route is as follows:

A:js basic parts, such as: defining variables, functions, arrays, strings, etc., built-in functions, built-in objects, etc.

B:js process-oriented programming idea, encapsulate various functions, try to use these to do some common small functions, such as: tabs, custom multi-select buttons, custom players, 3D slides

C:js object-oriented programming idea, try to encapsulate some of your own objects and provide meaningful interfaces.

D: after learning the above, and then learning the commonly used libraries, you must learn jquery here.

E: learn common plug-ins based on jquery, such as bootstrap,Layer, rich text editor, etc.

F: comprehensive application of the above various libraries to write actual project templates, write a few more sets.

Pay attention to learning methods

My learning methods are summarized as follows:

A: buy more foreign js books instead of those with 20-day mastery. Otherwise, it will be very difficult for you to learn. What is even more frightening is that if you buy a good book and study by yourself for 3 months, you may learn it, but they can bother you for two years.

Book recommendation (for reference only)

The Art of JavaScript DOM programming

Authoritative Guide to JavaScript

JavaScript DOM Advanced programming

"JavaScript Design pattern"

"the sharp jquery"

Try to practice all the functions in the book many times, not once. If you read the book a hundred times, you can see its meaning.

B: learn and understand from multiple angles

Fully mobilize what you have learned and do a function from multiple angles, such as: you used to do it from a process-oriented point of view, but now you do it from an object-oriented point of view, or continue to make plug-ins that can be used directly. provide properties, methods, etc. Try to make sure that this feature you do can gradually be used in practical projects. Such an advantage: it not only comprehensively applies what you have learned, but also has practical significance.

C: don't aim too high

Don't miss even small hands-on opportunities, such as making a tab. Do not think that with similar or better plug-ins, you do not need to write your own, the knowledge is someone else's, not yours, and even if you can use it, it will not improve your technical skills. You have to ask yourself more, what should I do if I have to do it?

D: while keeping your feet on the ground, don't be divorced from reality.

Look more at the effective functions that have appeared on the Internet, let it stimulate your enthusiasm for learning, try to learn to simulate, and mobilize your knowledge to combine with reality.

E: write more summaries

This summary includes not only source code, screenshots of the display effect, but also mistakes that should be easy to make and corresponding solutions, as well as the last one or two concise concluding statements. We should not finish the summary we have written. We should review, improve and simplify our work. When it comes to working on a project, you should know what it is by looking at one or two words inside, instead of looking at the monologue.

F: building a knowledge map

This can make you clearer as you learn, for example: http://www.phpkhbd.com/sky.html, you can do it in any form you like, as long as you are impressed.

Note: the knowledge map should also be modified and revised frequently to make it more reasonable and clear.

Matters needing attention

A: make full use of all means

Many people always feel that time is tight and there is no big chunk of time to study. I would like to say that you will not learn, you should not just complain, but use all means to learn, you know, not only reading is called learning. When you sit calmly somewhere, think about it, sum up, you are also called learning, whenever you are inspired, you can record it, such as: record it on your mobile phone, and then record it in a special place when it is convenient. It's all called learning.

B: the most important thing is to persist

Keep your heart down. There is no overnight success, otherwise it is not success, it can only be called "fluke". Not only to honestly try to achieve each function, but also to improve constantly to correct, this process is long, but also a test of whether a person is a talent or not.

C: pay attention to cultivating confidence

At this time, it is not suitable for you to look at the source code of very complex and dazzling web page effects, nor for you to learn these things like jquery,angular,vue,bootstrap. These contents contain a lot of esoteric knowledge, and learning them directly without any foundation will seriously damage your self-confidence. At this time, you are weak, what you need is to cultivate confidence, not the other way around, otherwise the outcome is likely to be "premature death", and there will be no end in sight.

D: learn more from those who have learned well.

Standing on the shoulders of giants, you can see farther.

E: don't waste it on the constant choice of tools

There are many editing tools for js. If you don't know how to start, it is recommended to use sublime or Hbuilder. Technicians in many companies use these, and you use this directly to reduce communication problems with others. I use this, too. It feels good.

I feel that the reason why js learns to be "messy and messy" is that you are too "smart", the control is too wide at the beginning, and the gains and losses are calculated too carefully. If the requirement is too perfect, the mental affordability will decline, and it is easy to have "obstacles". At this time, you should be "stupid" some, do not think about so long-term, "stupid people have stupid blessing", as long as do a good job today is enough. Some unreasonable learning methods and mentality also make you lose yourself, such as: impetuous, low-minded, ambitious, these will make you in the "mess" js in front of the fog, can not extricate yourself. At this point, you should reposition yourself, get to know js again, and let go of the burden before you can play easily. Empty the glass before you can fill it with fresh water. In fact, js is the core of the front end. Internet +, who has more and more influence, will yearn for more and more js talents. Only when he has experienced a truly unforgettable learning experience can he create a real elite to win the future.

After reading the above, have you mastered how to learn JavaScript easily? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report