Home >Web Front-end >JS Tutorial >Getting Started with Dojo Study Notes First Dojo Example_dojo
Step 1: Configurate Dojo
Download the latest Dojo package from http://www.dojotoolkit.org/downloads and put it somewhere in your project. For example, I put my dojo library in the lib folder (as shown in Figure 1).
Figure 1 (File Directory Structure)
Add the following code to your page, then the most basic configuration is completed.
Step 2: Start your First Example
My first example is to simulate a simple login page. If successful, it will display "Right!", otherwise it will display "Wrong! Please try it again!"