You Must Learn JavaScript

本文阐述了JavaScript为何是每位Web开发者都应该掌握的语言。它不仅在任何公司都能发挥重要作用,还能让你在网页上实现令人惊叹的功能。文章推荐了学习路径,从DOM操作开始,深入理解JavaScript的核心概念,并提供了丰富的资源和书籍推荐。
By Kenny Meyers December, 2nd 2010

If you asked me 3 years ago what language you should learn I would’ve said Ruby. If you asked me 6 years ago, it was PHP.

If you’re going to learn a language now, you need to learn JavaScript.

Why?

It’s my belief that every single web programmer should learn JavaScript. There are many new technologies coming out that fuel this principle. There is one single reason behind it. It’s ubiquitous. You can work for anyone and do amazing things if you’re using JavaScript. You can do it instantly on any machine.

Not every company is a Ruby shop. Not every company is a .NET shop. It’s my belief that 99% of the time both of these companies will need someone who knows JavaScript, and knows it well. Microsoft, Facebook, Apple and Google all use JavaScript to make great things.

Knowing JavaScript well is probably one of the most challenging and rewarding things you can do as a programmer. It’s an incredibly diverse language, much larger in application than you think. There are a large amount of gotchas, some great new APIs, and it’s in constant development.

When people talk about HTML5, they are talking mostly about JavaScript.

But where to begin?

The starting point to learn JavaScript is with manipulating a web page: with operating on the DOM. Many JS programmers have issue with this, because before Ajax and the JS revolution JavaScript was underestimated due to its role as a DOM Manipulator. You should know that it’s greater than a show/hide mechanism on your website.

Manipulating the DOM is easy, however, and instantly rewarding. The single greatest book I’ve found on DOM manipulation isDOM Scripting. The great news is that it’s finally getting a much needed update. Jeremy Keith’s book is the best gateway to some basic fundamentals of JavaScript.

This is just the beginning. If you thirst for more knowledge look at this Stack Overflow question. It has some great recommendations, many of which I’ve read.JavaScript: The Definitive Guide is the JavaScript bible. Praise be unto it.

I recommend Angus Croll’s JavaScript, Javascript as the single best blog on understanding core JavaScript. It’s so good and thorough that knowledge practically jumps into your tiny skull.Douglas Crockford is also great, but his writing isn’t as meticulous or detailed as Angus’s.

Frameworks are nice. They are helpful. If anyone scoffs at you for using a framework while you’re learning, don’t listen to them. You’re on the right path. I think jQuery educates more people about the importance of context in JavaScript than any book or reference doc. After you’ve selector’d your face off, dive deeper into the core.

Install Firefox and install Firebug. I still think Firebug is the best setup. Webkit is catching up. Watch the introductory video on the Firebug site to see how it works. As my friend and colleague Leevi Graham said “Firebug… still keeping firefox relevant” (source). A new version just arrived.

Mozilla, to their credit, still has one of the best online documentation sites for JavaScript. It should be your reference.

Learn JavaScript. It’s more important than any other language you’re thinking of.

Ref Link:http://thenerdary.net/articles/entry/you_must_learn_javascript


通常,出现'you must have device support installed'提示,可能是由于设备支持组件未安装、安装不完整或者版本不兼容等原因。以下为常见原因及对应的解决办法: ### 原因 - **设备支持组件未安装**:在开发环境中,设备支持组件是连接和管理设备的基础,如果没有安装,系统就无法识别和支持设备,从而给出该提示。 - **安装不完整**:在安装设备支持组件过程中,可能因网络问题、磁盘空间不足等,导致组件没有完整安装,使得系统功能缺失,引发提示。 - **版本不兼容**:设备支持组件版本与开发环境、设备系统版本不匹配,也会造成系统无法正常识别和支持设备,进而出现提示。 ### 解决办法 ```python # 安装设备支持组件 # 以 Android 开发为例,使用 SDK Manager 安装相关组件 # 若使用命令行,可参考如下命令 # 前提是已配置好 Android SDK 环境变量 import os os.system('sdkmanager "extras;android;m2repository" "extras;google;m2repository" "extras;google;instantapps"') # 重新安装设备支持组件 # 先卸载现有组件,再重新安装 os.system('sdkmanager --uninstall "extras;android;m2repository" "extras;google;m2repository" "extras;google;instantapps"') os.system('sdkmanager "extras;android;m2repository" "extras;google;m2repository" "extras;google;instantapps"') # 更新设备支持组件到兼容版本 # 查看可用的组件版本 os.system('sdkmanager --list') # 安装指定兼容版本的组件 os.system('sdkmanager "extras;android;m2repository;版本号" "extras;google;m2repository;版本号" "extras;google;instantapps;版本号"') ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值