Learning Javascript vs. jQuery

2020-06-12 04:41发布

I got the Wrox.Beginning.JavaScript.3rd.Edition and wanted to start learning it from scratch, then my boss came along and said that why bother, learn jQuery. Can I understand jQuery and work with it although I am a newbie and have limited knowledge in ASP.net, vb.net, some C#, and basic HTML?!

12条回答
Fickle 薄情
2楼-- · 2020-06-12 05:09

So what's your question? JQuery is a framework built on the top of a language JavaScript. To use JQuery confidently, you should get familiar with JavaScript. JQuery contains a bunch of useful patterns and utils that mask the incompatibilities of the browsers. Using a JavaScript framework make sense as it allows you to focus on your problem instead of the problem of the JavaScript implementations of the browsers.

For further details on JavaScript frameworks, see SO question »Which Javascript framework (jQuery vs Dojo vs … )?«. For learning JavaScript, learn the good parts.

查看更多
祖国的老花朵
3楼-- · 2020-06-12 05:10

If you already have an understanding of C#, you'll have a head start learning Javascript and it shouldn't be too hard to pick up. I'd stick with that Javascript book though, since you need to know Javascript to use jQuery. Once you are comfortable with Javascript, move on to learning jQuery. The jQuery docs are VERY helpful and can answer almost any question you have.

Good luck with learning it, it'll be worth it.

jQuery Docs

查看更多
贪生不怕死
4楼-- · 2020-06-12 05:14

It is entirely possible to learn jQuery without learning every bit of javascript first. However, to be productive and and extend the functionality of plugins etc you will need to know javascript.

I would suggest that you do a bit of both. Continue learning Javascript but when you want to implement functionality make use of the jQuery library.

查看更多
一夜七次
5楼-- · 2020-06-12 05:17

jQuery is made from javascript. :)

It would be a very good idea to read the source-code of jQuery to enhance your overall understanding of javascript...

Definitely learn both at the same time :)
Good luck and have fun.

查看更多
beautiful°
6楼-- · 2020-06-12 05:18

what are U doing? - ofcourse pure JavaScript is better =)

查看更多
一夜七次
7楼-- · 2020-06-12 05:29

if all your manager is asking from you is to show and hide some elements, or fade in and out a couple of images, or request some data via ajax and display it then learning jquery and its api is perhaps all that you need.

but if you (or your manager) are concerned about performance, maintainability, code reuse and generally understanding what the *ell is going on 'back there' then learning the language itself is a safe bet.

I would suggest grabbing a copy of JavaScript: The Definitive Guide, which will give you a general understanding of what it is and how to use it, and much more. While you are at it, I also suggest John Resig's Pro Javascript techniques. This guy really knows his javascript inside-out (works for mozilla, author of jQuery, amongst others).

As for jQuery, you don't really need to buy a book. Just browse through the API and have a look at its source code. Perhaps you won't understand much, but there are some cool stuff going on that will make you think.

查看更多
登录 后发表回答