jQuery与javascript? [英] jQuery vs. javascript?

查看:83
本文介绍了jQuery与javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近偶然发现了一些javascript论坛(遗憾的是,链接在宇宙中的某个地方丢失了),你可能会觉得真的讨厌jQuery而不是......好不好?

I recently stumbled upon some javascript forums (sadly, link is lost somewhere in the universe), where you could feel real hate against jQuery for not being... any good?

实际上大多数论点似乎都有意义。

Most arguments seem to make sense actually.

现在,我真的很喜欢jQuery,主要是因为让我专注于我想做的事情,而不是浏览器的不一致性和它实际上使AJAXing很酷(或过度使用?)效果很有趣。

Now, I really like jQuery, mostly for letting me concentrate on things I want to do rather on browser inconsistencies and it actually makes AJAXing with cool (or overused?) effects fun.

但是如果真的是jQuery核心的东西,我不喜欢我想依靠它实际上......依赖它。

But if really is something rotten in the core of jQuery, I don't want to rely on it the way I actually... rely on it.

我不想再开始讨论哪个框架是最好的。 ..但......哪个框架是最好的(笑话)?作为一个案例用法,考虑一下中小型网络及其管理。

I don't want to start yet another argument over which framework is the best... but... Which framework is the best (joke)? As a case usage, think about small to medium web and it's administration.

我只想弄明白,如果有些东西在某些框架或纯粹的javascript与少数我的函数确实有所不同。

I'm just trying to figure out, if stuff in some framework or pure javascript with few mine functions really makes difference.

我实际上试图拥有一个关于1的优缺点的正常客观讨论,使用纯javascript和2.,jquery与其他人的框架,因为jQuery似乎最容易使用最快的学习曲线。然而,有些人只是不理解它,并认为我开始了另一个火焰(我不是)。我实际上是在投票重新打开这个问题。

I actually tried to have a normal objective discusssion over pros and cons of 1., using a framework over pure javascript and 2., jquery vs. others, since jQuery seems to be easiest to work with with the quickest learning curve. However, some people just don't understand it and think that I'm starting yet another flame (what I am not). I am actually voting to reopen this question.

我也非常感兴趣:


  • jQuery是否严重依赖浏览器嗅探?这可能是未来的潜在问题吗?为什么?

  • 我发现了很多JS-selector引擎,有没有AJAX和FX库?

  • 有没有任何理由(除了浏览器嗅探和个人) 恨反对John Resig)为什么jQuery是错误的?

实际上,jQuery实际上也代表了其他框架。

jQuery actually, as most used, stands for other frameworks also.

推荐答案

这完全取决于性能和开发速度。当然,如果你是一个优秀的程序员并且设计了一个真正适合你需求的东西,你可能会获得比使用Javascript框架更好的性能。但是你有时间自己做这件事吗?

It's all about performance and development speed. Of course, if you are a good programmer and design something that is really tailored to your needs, you might achieve better performance than if you had used a Javascript framework. But do you have the time to do it all by yourself?

我个人认为Javascript非常有用且过度使用,但如果你真的需要它,那么框架就是一个框架是要走的路。

My personal opinion is that Javascript is incredibly useful and overused, but that if you really need it, a framework is the way to go.

现在是框架的选择。有关哪些基准值,您可以在 http://ejohn.org/files/142/。它还取决于哪些插件可用以及您打算如何使用它们。我开始使用jQuery,因为它似乎得到了维护和良好的功能,即使它在那一刻并不是最快的。我不后悔,但从那以后我没有测试任何其他东西。

Now comes the choice of the framework. For what benchmarks are worth, you can find one at http://ejohn.org/files/142/ . It also depends on which plugins are available and what you intend to do with them. I started using jQuery because it seemed to be maintained and well featured, even though it wasn't the fastest at that moment. I do not regret it but I didn't test anything else since then.

这篇关于jQuery与javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆