Вы находитесь на странице: 1из 1

Examples for DOJO Application Development ============================ One of the easiest ways of getting started with Dojo is to leverage

Dojo on one of the content delivery networks (CDN). This lets us get off the ground quickly. Using a CDN means your browser will need to connect to the public inter net. To "bootstrap" Dojo, you will load the dojo/dojo.js file and potentially provide it with some configuration information: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Tutorial: Hello Dojo!</title> </head> <body> <h1 id="greeting">Hello</h1> <!-- load Dojo --> <script src="//ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojo/dojo.js" data-dojo-config="async: true"></script> </body> </html> Example2: ======== If you are going to do a significant amount of development, you should download a source distribution and install it on your local web-server. To get the demos working on your local machine, you would want to put the the demo directory that contains your code in the same root directory that contains your Dojo source di stribution. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Tutorial: Hello Dojo!</title> </head> <body> <h1 id="greeting">Hello</h1> <!-- load Dojo --> <script src="../dojo/dojo.js" data-dojo-config="async: true"></script> </body> </html>

Вам также может понравиться