Dojo (1) Hello Dojo !!

I have been using easyui before, and I am ready to start learning DOJO. I will summarize the records here every time.

1.dojo.ready

 

< p>If js has been introduced in this form:

< /p>

 

dojo.ready () will be invalid

2.dojo.require

is similar to import in java. It is used to declare the dependency of a specific module and load dojo. In js, not all the dojo tools are loaded, but some core modules are loaded

introduce Module Animation example:

< /span>

 dojo.require("dojo.fx");//Introduce the module dojo.ready(function(){ dojo.byId ("greeting").innerHTML += "Hello DOJO"; //Animation effect, slide into dojo.fx.slideTo({ top: 500, left: 900, node: dojo.byId("greeting") }).play (); });

Leave a Comment

Your email address will not be published.