JavaScript还是jquery? [英] Javascript or jquery?
问题描述
我想问一个简单的问题, 我应该使用javascript还是jquery?
I'd like to ask a simple question, Should I use javascript or jquery?
据我所知,jquery对我来说很难学习(至少是ajax部分),而且我已经知道javascript以及如何使用javascript进行几乎所有操作.在某些功能中,我不得不说,在我的网站中,我之所以使用jquery,主要是因为精美的动画,但仅此而已.就我所能使用的jQuery而言.那么,jQuery是否会为我提供更多性能?我应该学习jquery来创建ajax函数还是只坚持使用javascript?
For all I know, jquery is difficult for me to learn (the ajax part at least) and I already know javascript and how to do almost everything in javascript. In some functions I have to say that in my website I used jquery mostly because of the fancy animations but only for that. That is as far as I can go with jquery. So will jquery offer me more in performance or not? Should I learn jquery to create the ajax functions or just stick with javascript?
我也知道这不是理想的选择,但您认为同时使用jquery和javascript(当然是针对不同的功能)会带来麻烦吗?
Also I know it wouldn't be ideal but do you believe that using both jquery and javascript (of course for different functions) will be buggy??
谢谢.
当然,我知道jQuery是一个Java框架,我想问一下它是否会提供更多的性能.
推荐答案
jQuery 是 Javascript.
这只是许多人觉得很方便的一组Javascript函数.
与本地XMLHTTPRequest
相比,jQuery.ajax
特别容易使用.
jQuery is Javascript.
It's just a set of Javascript functions that many people find very convenient.
jQuery.ajax
in particular is much easier to use than the native XMLHTTPRequest
.
调用未由jQuery定义的函数没有错.
There is nothing wrong with calling functions that aren't defined by jQuery.
这篇关于JavaScript还是jquery?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!