jQuery&之间的差异阿贾克斯 [英] Difference Between Jquery & Ajax
问题描述
任何人都请列出Jquery&之间的区别阿贾克斯?
Anybody please list differences between Jquery & Ajax ?
推荐答案
jQuery 是一个帮助完成数百项工作的库的东西,其中最重要的是"Ajax". Ajax最初的意思是异步JavaScript和XML",无非就是从客户端到服务器的异步数据传输. jQuery使执行这些异步操作变得更加轻松.
jQuery is a library that assists in doing hundreds of things, not the least of which is "Ajax". Ajax, which originally meant "Asynchronous JavaScript and XML" is nothing more than the asynchronous transmission of data from the client to the server. jQuery makes it easier to perform these asynchronous actions.
$.post( "/foo", { name: 'Jonathan' }, function( response ) {
alert( response );
});
在上面的示例中,我可以使用jQuery(用$
表示)将数据发布到服务器上的/foo
目录中.然后,我将服务器的响应作为response
处理,并在收到该响应时,将其警告给用户.
In the above example I can use jQuery (represented by $
) to post data to the /foo
directory on my server. I then handle the server's response as response
, and when that response is received, I alert it to the user.
此示例将被视为 Ajax ,尽管jQuery在$.ajax
成员中确实具有更强大的功能库.
This example would qualify as Ajax, though jQuery does have an even more versatile respository of power within the $.ajax
member.
进一步阅读: http://api.jquery.com/category/ajax/
这篇关于jQuery&之间的差异阿贾克斯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!