Current location - Health Preservation Learning Network - Slimming men and women - How to learn js well?
How to learn js well?
For a page, it is essential to realize good interactive Java, especially in some special pages of websites, which requires higher interactivity. Senior web front-end engineer js must master. Let's introduce Java in detail.

Although there are still some people who are skeptical about Java, especially its use in back-end tasks, these do not prevent Java from becoming a widely used language for clients and an indispensable tool for front-end development. Java, like html, is the language of the client (executed by the browser). Usually, Java scripts are embedded in HTML to realize their functions.

Here are some features of java:

1, java is an explanatory scripting language without precompiling, while programming languages such as C and c++ are compiled first and then executed, explaining java line by line.

2. Object-based language can not only create objects, but also use existing objects.

3. It can be embedded in an HTML page or written as a separate js file.

4, multi-platform operation, with the support of most browsers, can run on a variety of platforms, such as Android and iOS.

So, how can we learn easily and even skillfully in the js field? I summed up some practical js learning experiences:

First of all, we must firmly grasp its position.

Don't forget, otherwise it's easy to make the mistake of "one leaf can't see Mount Tai".

Don't learn that js is a programming language for a long time, that is, writing code, with chaotic features, so you can't learn js well.

We should always grasp its position, exactly its position in the whole WEB: it belongs to the core of the front end and is mainly used to manipulate and readjust the DOM, so as to achieve the purpose of modifying the page effect by modifying the DOM structure.

We should use this central idea to guide all subsequent js learning and form conditioned reflex.

There should be a clear learning route.

This can only be a reference for you.

My study route is as follows:

Answer: JS basic parts, such as defining the processing of variables, functions, arrays, strings, built-in functions, built-in objects, etc.

B: JS is process-oriented and encapsulates various functions. Try to use these to do some common small functions, such as tabs, custom multi-choice buttons, custom players and 3D slides.

C: JS object-oriented programming idea, try to encapsulate some of its own objects and provide meaningful interfaces;

D: Learn the above contents, and then learn the common libraries. You must study jquery here.

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

F: Use the above library to write the template of the actual project, and write more sets.

Pay attention to learning methods

My learning methods are summarized as follows:

Answer: Buy more foreign js books, and don't buy books such as 20-day mastery.

Otherwise, it's hard for you to learn. What's even more frightening is that you may have learned it after buying a good book for three months, but they can toss you around for two years. ......

Book recommendation (for reference only)

Java DOM programming art

Java authoritative guide

Java DOM advanced programming

Java design pattern

Sharp jquery

Try to practice all the functions in the book many times by yourself, not once. Read a hundred books and you will understand what you mean.

B: learn and understand from multiple angles.

Give full play to what you have learned and do a function from multiple angles, for example, you used to do it from a process-oriented perspective.

Now do it from the object-oriented point of view, or continue to do plug-ins that can be used directly, providing properties, methods and so on. Try to make this function you do gradually be used in actual projects.

This advantage: it not only comprehensively uses the knowledge learned, but also has practical significance.

C: Don't aim too high.

Don't miss even a small opportunity, such as making a label.

Never think that with similar or even better plug-ins, you don't need to write them yourself. Knowledge belongs to others, not to you. Even if you can use it, it won't improve your technical level.

You should ask yourself more, what if you have to do it?

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

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

E: write more summaries

This summary includes not only the source code and screenshots of the display effect, but also the mistakes that should be easily made and the corresponding solutions, as well as the last one or two concise concluding remarks.

I haven't finished writing my own summary, so I need to review more, improve more and streamline more. When it comes to doing a project, you should know what it is about by reading a sentence or two, not a long speech.

Constructing knowledge map

This will help you learn more clearly, such as: /sky.html, whatever form you like, as long as you are impressed.

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

Matters needing attention

Make full use of all means

Many people always feel that time is tight and they don't have much time to study. I want to say that you can't learn. You shouldn't just complain, but use all means to learn. You know, reading is not necessarily called learning.

When you sit somewhere calmly, think about it and sum it up, you are also called learning. If you are inspired, you can record it, for example, on your mobile phone, and then record it in a special place at your convenience. This is all called learning.

B: It's a matter of persistence.

Calm down. There is no overnight success, otherwise it is not success, and it can only be called "luck".

We should not only honestly try to realize each function, but also constantly improve it. This process is long, and it is also the standard to test whether a person is a talent.

C: pay attention to cultivating self-confidence

At this time, it is not suitable for you to read the complicated and dazzling source code of web page effects from the beginning, and it is not suitable for you to learn such things as jquery, angular, vue and bootstrap from the beginning.

These contents contain a lot of profound knowledge. Learning these directly without any foundation will seriously hurt 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 "early death", and you will have no future in achieving anything from school.

D: learn from those who study well.

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

E: Don't waste on the constant choice of tools.

There are many editing tools for js. If there is no way to start, it is recommended to use sublime or Hbuilder. Many company technicians use these. You can use them directly to reduce communication problems with others.

I also use this. It feels good.

abstract

I feel that js is "confused" in learning because you are too "smart", dabbling in too much from the beginning and calculating the gains and losses too carefully.

The requirements are too perfect, the psychological endurance declines, and it is easy to have "obstacles". At this time, you should be "stupid", not so long-term, "fools are rewarded", as long as you do it well today.

Some unreasonable learning methods and mentality also make you lose yourself: for example, you are impetuous, arrogant and ambitious, which will make you trapped in the fog in front of js.

At this point, you have to reposition yourself, get to know js again, and let go of the burden before you can go into battle easily. Empty the glass before filling it with fresh water. ......

In fact, js is the core of the front end. Internet plus, whose influence is getting deeper and deeper, will be more and more eager for js talents. Only by experiencing a truly unforgettable learning experience can we create an elite who can truly win the future.