Home > Web Front-end > JS Tutorial > Suggested framework for developing Dojo yourself_dojo

Suggested framework for developing Dojo yourself_dojo

WBOY
Release: 2016-05-16 19:00:38
Original
1360 people have browsed it

1. Because each version of Dojo changes significantly.
2. Dojo updates relatively quickly, basically a new version takes 1-2 months.
3. Dojo has many imperfections. In practical applications, it is impossible to achieve all the functions you want if you do not modify the code.

The recommended development framework is as follows >_dojo
_dijit
_dojox

_util
That is, create a new directory padesk (example, you can choose it yourself), create new dojo, dijit, and dojox directories under the padesk directory, and modify them as needed The components that can only be used later are placed in the corresponding directory:
For example:
dijit.form.Button
Based on this, if we want to customize a Button that only displays Icon, we can define it as padesk.dijit. With a structure like form.iconButton

, as long as the corresponding module (or even just the corresponding function) does not change, we can copy the Padesk folder to the new version of dojo and it can be used immediately. It saves a lot of trouble in modifying the original code.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template