From the bottom of variables, functions, objects and other relatively abstract concepts, I don’t know what’s the use of learning these, you will learn very boring, Baidu search intelligence agency, watch its free video, 0 basic, don’t talk about boring logic, directly teach you to do very interesting examples, in practice you will find a lot of things you don’t understand, you will naturally go back to learn ecmascrip with great interest The basis of T.
Don’t thank me.
If your goal is “this is a great effect, and I want to make a similar one”, then I don’t object to you directly looking at the existing code.
If your goal is to “create an original, eye-catching page,” refer to the first paragraph. In a word, beautiful effect doesn’t mean beautiful code, and beautiful code doesn’t mean good applicability.
The time saved at the beginning will be paid several times or even more in the future, as long as you go far enough on that road.
I used to read rhinoceros Book JS advanced programming in class, and knock code practice after class. I watched it for a semester, and didn’t spend much time. Then I can see most of the effects on the Internet at a glance. When I look at the JQ API, I am very clear about the methods left behind. It’s time to get started.
If there is programming basis of other languages, find a book that summarizes the knowledge structure of JS, and read it from the beginning to the end;
Build the skeleton first, then fill in the code
For the so-called design pattern and code structure related problems, it’s better not to worry about them first. Everyone comes from if… Else… And analyzes your code process on paper before writing code (everyone can think of at least one method for any problem, only some are advanced and some are low-level, so don’t worry about the high and low efficiency of your design process first , can solve the problem), and then use the code to describe your design process (consult the manual immediately in case of any problem you don’t understand). Don’t write the code while designing the program, which is a big taboo for any beginner;
Other people’s code doesn’t have to be useful to you
Looking at other people’s code is indeed a way of learning, but other people’s code styles are quite different, and the thinking of beginners is linear (except for those who have programming experience in other languages), while Daniel’s code is definitely not linear, there will be a variety of packages, abstractions and other non-linear consciousness included in it, so we should not consider flying before we walk smoothly The problem of gallop;
Read a good book
When water flows, a channel is formed
Some empirical knowledge can only be truly understood after a certain number of repeated practices. If you give up learning native JS and just skillfully use the framework like jQuery to write programs, you will eventually be overwhelmed by some incomprehensible abnormal problems. On the other hand, some things come naturally. When the knowledge framework of JS in your mind is extremely perfect, you may be surprised to find that jQuery is just a text game played by the author, and the principle is not complicated at all.