Relations ArcGIS API for JavaScript and Dojo's

API (regarded ArcGIS API for JavaScript after referred to as API) built on Dojo, to take full advantage to shield various Dojo browser differences.

What is the Dojo it?

Along with Web2.0, Ajax and RLA booming, a variety of AJAX development toolkit developed, Dojo it is one of the best. Dojo provides a complete end to end solutions for the development of RIA.

Dojo consists of three major modules, namely Core, Dijit, DojoX

Core offer Ajax, events, CSS-based query, animation and other related operations JSON API.

Dijit is a skinnable, Web-based Interface Control Library template contains many easy to use widgets (Widget)

DojoX comprising a tool magazine (Util) module, which contains a unit testing framework (DOH), generating a documentation tool, and JavaScript resources Dojo package from the source code with the compression tool

Dojo is a layered architecture, bottom layer is a packet system, the structure of the Dojo API is very similar to Java, it put all the API into different packages, when using an API, this API is located just import package. The above package is a layer of language library system, the library contains some language tools language API, similar to the Java Util package. Then the top layer is environment-related package, which used to handle cross-browser issues. Dojo most of the code in the application support library, due to too small, the above figure does not list all the packages, developers often call this layer API, for example, the use of IO package can be Ajax calls. The top layer is a system Dojo widget, widget refers to a user interface element, such as buttons, a progress bar and trees. Dojo widget is based on the MVC architecture. It is a view as to the Template for storage, placing the fragments in HTML and CSS Template, and the controller operates in the Template element. Widgets not only supports custom style sheets, and the ability to process the events of the internal element. Users in the page simply by adding a simple tag can be used. In this layer, there are hundreds of powerful widgets to user-friendly, including tables, trees, menus and so on.

 

Guess you like

Origin www.cnblogs.com/yourdid/p/11872906.html