一个脚本块(script block)是指
Within normal HTML flow (not within a script block), it would look like this.
在正常的html流中(不在脚本块中),它看起来如下所示。
To do so, add additional code to the inline script block you created earlier (see Listing 4). Listing 9 shows the inline script block.
为此,需要在前面创建的内联脚本块(见清单4)中添加代码。
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 函数)。
应用推荐