Home >Web Front-end >JS Tutorial >The first day of dojo learning Tab tab implementation_dojo

The first day of dojo learning Tab tab implementation_dojo

WBOY
WBOYOriginal
2016-05-16 18:02:581445browse

In fact, this is not the case. In the words of "Mastering Dojo", "Dojo is not just a library, but a toolkit." It is more comprehensive and broader than all other JS library plug-ins. It contains about 40 user interface controls, a graphics framework, cometd support, a packaging system, and a few other things.

Download the latest version 1.6 from the dojo official website and unzip it. It has three folders:

1. dojo: It is the basis of Dojo. Everything else you want to do is based on it. It is similar to the jquery.js file, but it is richer in other functions;

2. dijit: Dojo’s widget framework and built-in set of widgets. (There are about 40 HTML user widgets);

3 dojox: Dojo extension library, including all functions from table widgets to drawing libraries.

It is enough to understand these. Although it has only been released to 1.6 and has not reached 6.1 like jquery, dojo is definitely powerful. Choosing it will be your lifelong pursuit. (advertising words)

(Note: Dojo was started in 2004, initiated by Alex, and then developed by many DHTML experts, so it is now very mature.)

Next, we are going to configure our first example, are you ready? The dojo journey has officially begun, we are going to make an example of form registration.

First we need to reference its theme style:

Copy the code The code is as follows:



<script> <br>dojo.require("dojo.parser"); <br>dojo.require('dijit.layout.ContentPane'); <br>dojo.require('dijit.layout.TabContainer'); <br></script>





































Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn