学习 JavaScript 的初学者指南?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2970314/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 02:44:32  来源:igfitidea点击:

A Beginners' Guide to Learning JavaScript?

javascript

提问by CloseDiamond

There's a few mentions of Javascript newbies getting starting by checking out some of Douglas Crockford's work (https://stackoverflow.com/questions/11246/best-resources-to-learn-javascript), but none of his resources seem to be for those looking to learn from the ground up.

通过查看 Douglas Crockford 的一些工作(https://stackoverflow.com/questions/11246/best-resources-to-learn-javascript),有一些提到 Javascript 新手开始,但他的资源似乎都没有那些希望从头开始学习的人。

Are there any suggestions for complete beginners regarding how best to learn JavaScript?

对于如何最好地学习 JavaScript 的初学者,有什么建议吗?

Personally I have plenty of HTML and CSS experience, and some PHP (which would help learning JS), but for those that don't know any programming language what would you recommend?

就我个人而言,我有大量的 HTML 和 CSS 经验,以及一些 PHP(这将有助于学习 JS),但是对于那些不了解任何编程语言的人,您会推荐什么?

回答by somecallmejosh

I have been using the tutorials in Learnable.comfrom the Sitepoint folks, Lynda.com, and Tutsplus. These are all paid services, but I learn lots from them. The Codecademy Javascript Fundamentals tutorial/class definitely gets a thumbs up. Codecademy is real time, challenging and free.

我一直在使用Learnable.com 中来自 Sitepoint 人员、Lynda.com和 Tutsplus 的教程。这些都是付费服务,但我从中学到了很多东西。Codecademy Javascript Fundamentals 教程/课程肯定会得到一个赞许。Codecademy 是实时的、具有挑战性的且免费的。

回答by Colby

Code Yearalso has a great program for ground up learning!

Code Year还有一个很棒的基础学习计划!

回答by bjkeefe

I have been working my way through Codecademy's offerings, specifically, "JavaScript Fundamentals", the "non-track courses" in JavaScript, and, as mentioned above, their current "Code Year."

我一直在学习 Codecademy 的产品,特别是“JavaScript 基础知识”JavaScript 中“非跟踪课程”,以及如上所述的他们当前的“代码年”。

I am coming at it from the perspective of someone who used to write *nix shell scripts and C and Fortran (yes, yes) code for a living a while back, and who lately has been doing some basic HTML/CSS, so some parts were obvious. Most of it, though, was new to me, since I had pretty much no experience with object-oriented or event-driven programming.

我是从一个曾经写过 *nix shell 脚本和 C 和 Fortran(是的,是的)代码的人的角度来看的,他最近一直在做一些基本的 HTML/CSS,所以有些部分很明显。不过,其中的大部分内容对我来说都是新的,因为我几乎没有面向对象或事件驱动编程的经验。

On the whole, I have found it very useful. It can be a bit frustrating getting your answer to a particular exercise to "pass," because the validation process appears to be sensitively dependent on the individual "teacher's" ability to write good checks, but this is only a minor complaint. Mostly, this is not an issue, and the already-posted answers on the forums on the site are quite helpful if you're stuck. Generally, though, doing what you're asked will get you a happy success message, and I really like the interactivity of it all. It's not perfect, of course, but I feel like I'm getting a good introduction to the key points and concepts of JavaScript; enough, at minimum, that I can speak enough of the language to know how to Google/Stackoverflow things more precisely. And really, I feel like I'm getting a lot more than that -- the dumb ideas I've had for little utility scripts are becoming a pleasure to implement.

总的来说,我发现它非常有用。让您对特定练习的答案“通过”可能有点令人沮丧,因为验证过程似乎敏感地依赖于个人“老师”写好支票的能力,但这只是一个小问题。大多数情况下,这不是问题,如果您遇到困难,网站论坛上已经发布的答案会很有帮助。不过,一般来说,按照您的要求去做会给您带来成功的快乐信息,而且我真的很喜欢这一切的交互性。当然,它并不完美,但我觉得我对 JavaScript 的要点和概念有了很好的介绍;至少,我可以说足够的语言来知道如何更准确地使用 Google/Stackoverflow。真的,我觉得我'

回答by Dustin Laine

回答by Peter Tillemans

"Javascript, the good parts" is very good, but you need to have some theoretical background or some serious programming experience to put it to use. It is a bit high-brow. However if you have had programming courses during your education it will be fine.

“Javascript,好的部分”非常好,但是您需要具有一定的理论背景或一些认真的编程经验才能使用它。这有点高尚。但是,如果您在教育期间上过编程课程,那就没问题了。

回答by Skilldrick

I'd say W3Schools is a pretty good tutorial for someone with no programming experience. But as soon as you finish that, start working through Crockford's material, and unlearn all the bad stuff you learnt.

我想说 W3Schools 对于没有编程经验的人来说是一个很好的教程。但是一旦你完成了,开始研究克罗克福德的材料,忘掉你学到的所有不好的东西。

I don't know of any introduction to JavaScript that follow's Crockford's good parts, but he says in the introduction to his book that he'd like to write an introduction to JavaScript at some point, so fingers crossed!

我不知道在 Crockford 的精彩部分之后有什么 JavaScript 介绍,但他在他的书的介绍中说他想在某个时候写一篇 JavaScript 介绍,所以手指交叉!

回答by Nathan

Head First Javascriptis an excellent book for beginners. The Head First series does a great job of breaking things down to the basics, but still covering a lot of ground throughout the book.

Head First Javascript是一本非常适合初学者的书。Head First 系列在将事物分解为基础方面做得很好,但仍然涵盖了整本书的很多内容。

回答by Mike

There are NOW some good interactive tutorials for learning Javascript right from the beginning. If you are fairly new to Computer Programming, try Code Avengers(a site I helped create) or CodeCademy. Both are free and get you to write code right from the beginning.

现在有一些很好的交互式教程可以从一开始就学习 Javascript。如果您是计算机编程的新手,请尝试Code Avengers(我帮助创建的站点)或CodeCademy。两者都是免费的,让您从一开始就可以编写代码。

If you have a some programming experience, try Code School. It has courses for html, css, Javascript and JQuery. However, they do cost about $50 a course. Learners watch fairly entertaining video tutorials then complete programming tasks.

如果您有一些编程经验,请尝试Code School。它有 html、css、Javascript 和 JQuery 的课程。但是,他们每门课程的费用约为 50 美元。学习者观看相当有趣的视频教程,然后完成编程任务。

My experience in learning and teaching others to program is that these type of sites can be both and effective and enjoyable way to learn programming. Probably in conjunction with other resources.

我在学习和教他人编程方面的经验是,这些类型的网站可以成为学习编程既有效又愉快的方式。可能与其他资源结合使用。