Constructors are also easy using the init block.
构造函数也可以方便地使用init块。
The last line of the script block uses the dojo.addOnLoad function to invoke a function (in this case the init function) when the web page finishes loading.
在web页面完成加载时,脚本块的最后一行使用dojo.addOnLoad函数来调用函数(在本例中是init 函数)。
The last line of the script block uses the dojo.addOnLoad function to invoke a function (in this case the init function) when the web page finishes loading.
在web页面完成加载时,脚本块的最后一行使用dojo.addOnLoad函数来调用函数(在本例中是init 函数)。
应用推荐