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 函数)。
Within the main script too, an additional script block sends a GET request for the feed URL and parses the response to extract and display the video owner's username, age, location, and gender.
在主脚本中,附加的脚本代码块发送一个获取提要URL的 GET请求,并解析响应来提取和显示视频所有者的用户名、年龄、位置和性别。
Gets or sets a value that indicates whether the proxy generation script is included in the page as an inline script block or is obtained by a separate request.
获取或设置一个值,该值指示是将代理生成脚本作为内联脚本块包含在页上还是通过单独的请求获取。
ActionScript also requires a reference to other packages (libraries) in order to use them; hence the "import" statement at the top of the Script block.
ActionScript在使用一个包(库)之前,先要进行引用,所以例中脚本块的开头有一行“import ”语句。
ActionScript also requires a reference to other packages (libraries) in order to use them; hence the "import" statement at the top of the Script block.
ActionScript在使用一个包(库)之前,先要进行引用,所以例中脚本块的开头有一行“import ”语句。
应用推荐