Ajax and Dojo Ajax
I've been looking into the javascript package Dojo, and I noticed that it us开发者_StackOverflow社区es sort of its own form of Ajax, but as far as I can tell it does the same things as standard Ajax. Is there a benefit to using either over the other, or is there really a difference?
I'm new to both Ajax and Dojo so feel free to correct anything I may have said.
The first line of the Dojo description sums up the benefit: "Dojo saves you time."
You can code all of your AJAX functionality by hand, or you can use a framework (Dojo, jQuery, Prototype, etc) to take care of a lot of the mundane tasks for you.
Edit:
For a good list of reasons to use Dojo or something similar, please see: 6 Reasons To Use JavaScript Libraries & Frameworks.
Like other libraries and frameworks for client-side web applications, Dojo provides a wrapper around the native browser ajax capabilities. Ultimately it can only do what the browsers will allow. It can, however, make things a little more convenient, in a way similar to that by which php makes assembly language programming more convenient.
精彩评论