开发者

What are the common misconceptions of jQuery?

I'm wondering what are some common misconceptions of jQuery? I've found there is a lot of hype around the technolo开发者_开发技巧gy and I'm trying to wonder how much of it is true. And how does it compare to the other Javascript libraries like mootools etc.


It's all true. I've not found a problem that jQuery (or one of its plugins) couldn't solve.

Admittedly, some would say that including the jQuery library + plugins is an unecessary network traffic cost, but if you compare the jQuery library to an image, for example, the cost seems minimal. Furthermore, with gzip + JS compression, the actual data sent shrinks greatly.


That jQuery is appropriate for every possible situation where JavaScript may/should be employed.


A common misconception seems to be that people think that jQuery is a separate language from Javascript, and not just another Javascript library.

There are often questions about how you solve something in jQuery, without considering if jQuery is the best solution, or even if it's useful at all for that specific problem. For example, sometimes the cascading properties of CSS is much more efficient and scalable than the jQuery solution to loop through the elements.


Judging by the comments so far, I would conject that the most common misconception about jQuery is that it is perfect.


jQuery is the best thing that ever hapened to javascript, at least for me.
it makes everything so easy to do, without you having to worry about browser compatibility.

The community is very large and you can find plugins for nearly everything on the web...

combined with ajax request, jQuery can do virtually anything you want and application to do, and brings that to the web...


jQuery is to JavaScript what sliced bread is to sandwiches.

You CAN do it all manually - but why not use a highly tested library that is most likley better than anything you could write and test yourself.


You don't need to know 'raw' JavaScript to write good jQuery.

while you can make some cool stuff not really knowing a lot of basic JavaScript, a lot of jQuery constructs are significantly slower than their basic, non-framework counterparts.


If you are targeting modern desktop browsers only, jQuery is the tits. The only issues I have run into is on some mobile browsers where they might get some parts of jquery but not others which can have some "interesting" effects on your apps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜