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 函数)。
应用推荐