1.
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5 <title>Tutorial: Hello Dojo!</title> 6 </head> 7 <body> 8 <h1 id="greeting">Hello</h1> 9 <script src="dojo/dojo/dojo.js" data-dojo-config="async: true"></script> 10 <script type="text/javascript"> 11 12 require(['dojo/dom','dojo/dom-construct'],function(dom,domConstruct){ 13 var greetingNode= dom.byId('greeting'); 14 domConstruct.place('<i> Dojo!</i>', greetingNode); 15 }); 16 </script> 17 </body> 18 </html>
2.