Home >Web Front-end >JS Tutorial >How to learn Javascript introductory guide_Basic knowledge

How to learn Javascript introductory guide_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 17:18:011966browse

谈不上经验,都是一些教训。

  这个时候有人要说,“靠,你丫半桶水,凭啥教我们”。您先别急着骂,先听我说。

  你叫一个大学生去教小学数学,不见得比一个初中生教得好。因为大学生早已经过了那个阶段,都忘记自己怎么走过来的了。而对于初中生,刚好走过那个阶段,对自己怎么走过来的还记忆犹新,或者还有一些自己的总结。比如,很多高手觉得那本犀牛书入门很好,他们觉得太简单了,但以我的经验来看,它不是入门的最好选择。

  先说说学js的条件

  论条件,咱是文科生,大学专业工商管理,和计算机毛关系都没;有人说英语,读了四年大学,很遗憾,咱还四级没混过;就咱这条件都学得乐呵呵的,您还等啥。

  当然学习JS也是有门槛的,就是你的html和css至少还比较熟练,您不能连这东东是干啥的都不知道就开始上JS了,学乘除前,学好加减法总是有益无害的。

  再说几点忠告

  1,不要着急看一些复杂网页效果的代码,这样除了打击你自信心,什么也学不到。没达到一定的武功水平,割了小JJ也学不会葵花宝典的。

  2,别急着加技术交流QQ群,加牛人QQ。如果你找张三丰交流武功,你上去第一句问“丰哥,where is 丹田?”,你会被他一掌劈死的。

  3,看网上什么多少天精通JS,啥啥啥从入门到精通,这种教程直接跳过吧,太多的事实证明,以一种浮躁的心态去做任何事都会以失败而告终。

  4,千万别去弄啥电脑培训,花了钱和时间不说,关键是学不到东西。本来你买两本好书自学3个月能学会的,他们硬是能折腾你两年。

  推荐几本好书

  “超毛,你丫吹了半天牛B,还是没说怎么学啊”

  呵呵,我也没啥特别的办法,只是推荐几本好书。推荐的书,得按先后顺序看。别第一本没看完,就急着上第二本,并不是每次“穿越”都能成功的

  第一阶段:《JavaScript DOM编程艺术》

  看这本书之前,请先确认您对Javascript有个基本的了解,应该知道if else之类的语法,如果不懂,先去看看我第二阶段推荐的《Javascript高级程序设计》的前三章,记住看三章就别往下看了,回到《JavaScript DOM编程艺术》这本书上来。

  学习Javascript用《JavaScript DOM编程艺术》来入门最好不过了,老老实实看两遍,看完了你就会对JS有一个大概的了解,整本书都围绕着一个网页效果例子展开,你跟着老老实实敲一篇,敲完之后,你会发现这个效果不是常在网页中看到么,发现自己也能做出来网上的效果了,嘿嘿,小有成就感吧。

  第二阶段:《JavaScript高级程序设计》

  有的书是用来成为经典的,比如犀牛书;还有些书是用来超越经典的,显然这本书就是这种。书中章章经典,由浅入深,其中第6章,关于JS面向对象的解说,没有教程出其右。

  如果有一场满分100分的JS考试,看了《JavaScript DOM编程艺术》能让你拿到20分,那么看完这本书,你就能拿到60分以上了。学完后,你会成就感倍增的,相信我(至少看两遍,推荐三篇,跟着书上的代码一行行的敲)。

  这本书强烈推荐购买,写的太TMD牛逼了,给你带来的价值超过百倍千倍。

  这本书最新的是第三版,貌似就是前些日子出来的,我看的是第二版,第三版相对第二版变动不大,添加了几章内容,价格目前相差10元左右。

  接下来,恭喜你可以下山了,这个时候可以自己做一些事情了

  • You can go to Ferris's tutorial to take a look at the effects he wrote and the source code. If you think some parts are very simple, try to follow him and write these effects. .
  • Learning technology behind closed doors will not work. Add one or two QQ groups for communication (focus on quality) and go to forums often. You will often gain some small gains.
  • Furthermore, read the articles shared by these talented seniors, which will make your study more effective. Here are some blogs and personal websites of some talented people in China collected by enthusiasts. Click here.

The third stage: "The Essence of JavaScript Language" and "High-Performance JavaScript"

The next two books "JavaScript Language Essence" and "High-Performance JavaScript" are supplements to the JS Advanced Tutorial. Some of the content in them is repeated with the JS Advanced Tutorial. The two books can be read at the same time. They are not thick and can be used for reading. There is a good reinforcement and consolidation of what was learned previously.

The fourth stage: "JavaScript DOM Advanced Programming" and "JavaScript Design Patterns"

After thoroughly studying the books mentioned above, the order of the next two books is no longer important, "JavaScript DOM Advanced Programming" (note that it is different from "JavaScript Advanced Programming") and "JavaScript Design Patterns" , both of these are heavyweight books that can take your JS skills to a new level; the former of these two books focuses on practicing external skills, and the latter focuses on practicing internal skills, which is a bit like the relationship between the Great Shift of the Universe and the Nine-Yang Divine Skill.

"JavaScript DOM Advanced Programming" first teaches you to build a tool function library similar to JQuery, and then explains several application examples that are often encountered in practice, which will benefit beginners a lot.

"JavaScript Design Patterns" mainly talks about JavaScript design patterns. To be honest, the quality of the translation is very average and a bit stiff, but it basically does not affect your learning. You can completely understand what you mean by looking at the code.

These two books have been out for a while and may not be available for purchase. Here is the download address:

 "JavaScript DOM Advanced Programming" download address , please note that there are three parts that need to be downloaded.

 "JavaScript Design Patterns" download address

The last thing I want to say

  • Don’t be restless and impetuous. No learning is achieved overnight. Becoming a master is a process of learning and accumulation. Don’t expect your level to be as good as two or three months. The most awesome martial artist in "The Legend of Heaven and Dragon Slayer" is Zhang Sanfeng, not Zhang Wuji.
  • Any job requires a variety of skills, don’t neglect learning html, css and other knowledge.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn