Introduction to Dojo Basics (i)

Source: Internet
Author: User

Summary

This article describes the basic information about dojo and gives you a rudimentary understanding of dojo with a few simple examples. It then describes the preparation of the development environment and the concepts needed in the development process.

Since the new version of Dojo has made significant changes to the previous version 0.4, many of the existing resources are introduced on the basis of the original version, which will inevitably cause confusion for beginners. This article as far as possible use in simple and simple way, through the short, plain text to the dojo introduced to everyone, so that beginners can easily understand dojo, in the shortest possible time to learn to use.

1. Dojo Introduction

1.1, What is Dojo?

Dojo is an open source DHTML Toolkit written using JavaScript. It's based on a lot of donated code, which is why when we talk about it, it's a "unified" tool. With dojo, you can easily build dynamic Web pages and other JavaScript-enabled environments. You can use the components that dojo encapsulates to make your Web site more available, responsive, and more functional. Dojo's event systems, I/O APIs, and generic language enhancements form the basis of a powerful program environment. You can use the Dojo build tool to write command line unit tests for JavaScript code. You can use Dojo packages to make your code easier to maintain and less platform dependent.

1.2. The benefits of using Dojo

L breadth and breadth:Dojo is a "full stack" application framework. It's not the kind of component that puts a few different sources together. Dojo allows each component to be constructed into a trustworthy collection of high quality blocks by providing an integrated underlying architecture and a wide range of optional modules. These components provide a good solution to the problems faced by ordinary users, and they are easily tuned to meet a variety of requirements. From panel-based design to client-side diagrams, to data binding, to time-tested modular systems, Dojo is a rigid, low-level architecture that takes into account many user experiences.

L Quality: internationalization and accessible infrastructure is woven from dojo "fiber". Each keystroke is prompted correctly. All the components fit together as a sticky whole. Everything is easy to customize with CSS. Just a little tweaking to get a nice, neat look, based on a lot of user experience (not only for ordinary users, but also for designers and developers), is a feature of the design and testing.

L Performance:Dojo is used on sites with high traffic and high volumes every day, and using Dojo's construction tools is a key reason to do so. The Dojo package system can easily manage large-scale UI development projects and build the top system layer to make surprising applications. All this without code modification. Dojo also packaged high-performance common application implementations into its core, and the Dojo 0.9 version gives more attention to performance and reduces code. It's a small, compact kit and fast. These features make Dojo an ideal platform for expansion and construction.

Community : Dojo is an open source community where individuals and companies can compete in a level playing field that makes it possible for everyone to benefit from the use of these tools. All development is done in an open environment and consciously lowers the threshold of learning.

Version history of 1.3. Dojo

The Dojo project history has a stable version of 0.4.x,0.9,1.0.x, but 0.9 is a major change from the previous 0.4.x, incompatible with 0.4.x and compatible with the later version.

Because the developers of the Dojo project have focused on the new version of development maintenance, this article is based on the 0.9 and subsequent versions of the code based on the analysis.

The latest version of Dojo is 1.0.2 by the time this article is due.

Installation of 1.4 . Dojo

There are three different ways to install Dojo:

1. Content distribution Network (CDN) directly connected to AOL. Just add <script type= "Text/javascript" src= "Http://o.aolcdn.com/dojo/0.9.0/dojo/dojo.xd.js" to the Web page ></script > Can

2. Download Dojo latest version of the code, installed in the local

3. Get the Daily build version from the Configuration Management Server

The 1th way is not to go deep inside the code to understand the dojo implementation mechanism and need to be online, for the 3rd way of the daily latest is not necessary, as long as there is a most stable version. The 2nd way basically can make up the other two kinds of deficiencies, the author I recommend the use of the 2nd way.

1.5. Dojo's packet system decomposition

Dojo is mainly divided into 4 packages: Dojo is the core, including Ajax basics, as well as events, JSON, CSS queries, and other basic content; Dijit contains a variety of template-based layouts, component classes that can be used directly on their basis or inherited from custom Dojox is the expansion pack for the two packages, providing richer and more gorgeous components and functionality; Util is a helper kit. &NBSP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.