请注意第一个脚本标记。
This technique is sometimes called the script tag hack.
这种技术有时候被称为脚本标记hack。
To see how it works, first consider the HTML script tag.
为了说明其工作原理,首先来看看html脚本标记。
Notice the URL in the SRC attribute of the script tag.
注意,script标记的src属性的URL。
Avoiding the same-origin policy: JSON and the dynamic script tag.
避免同源策略:JSON和动态脚本标记。
Each script tag must define its own main entry point in order to run.
每个脚本标签必须定义自己的main入口才能运行。
It is the server, not the script tag, that determines the MIME type.
MIME类型是由服务器而非scripttag来决定的。
Either XHR or dynamic script tag insertion can be used with this format.
XHR和动态脚本标签注入都可以使用这种格式。
The typical way to include a script is to use the SCRIPT tag in your HTML page.
在典型的方式包括一个脚本就在你的HTML页中使用SCRIPT标记。
The URL to the Web service is the string in the SRC attribute of the script tag.
指向Web服务的URL为脚本标记的sr c属性中的字符串。
This can be added at the top of the existing script tag on the photo gallery page
这些操作可以添加到相册页面上已有脚本的前面。
To call Twitter, you use a dynamic script tag, which is a technique often referred to as JSONP.
为了调用Twitter,要使用动态脚本标签,这是一项常称为JSONP的技术。
The first script tag initializes the Dojo toolkit by simply loading the dojo.js bootstrap file.
第一个脚本标记通过加载dojo.jsbootstrap 文件来初始化 Dojo工具箱。
When this code runs, a new script tag is appended as a child to the current page's head tag.
执行后将在当前页面的head标记中增加一个新的script 标记。
The script tag defines one or more scripts that can be invoked by elements within the document.
script标记定义一个或多个脚本,文档中的元素可以调用这些脚本。
On the other hand, Google provides a way to surface gadgets on any Web page using an HTML script tag.
另一方面,Google为在使用html脚本标记的Web页面上使用小部件提供支持。
The script tag brings in an external script page, which is defined by a form named s_StdPageReadCode.
脚本标签引入了一个外部脚本页,它通过名为s_stdpagereadcode的表单来定义。
JSONP operates by dynamically adding a new script tag into your page and then executing the contents.
JSONP运行在一个安全漏洞中。通过向您的网页动态添加新的脚本代码,然后执行内容。
Edit the Settings, and paste the Flex application script tag of your Flex application as shown in figure 3.
编辑设置,并粘贴Flex应用程序的Flex应用程序脚本标记,如图3所示。
Within this script tag, we also override response and displayJSONobj functions to display query result to users.
在这个脚本标签中,我们还要通过覆盖response和displayjsonobj函数来向用户显示查询结果。
Also, add the lines shown in Listing 5 to the so-far empty script tag with the your Dojo-based application code goes here code comment.
同样,将清单5所示的代码行添加到目前为止仍然空着的脚本标记,代码注释为your Dojo - basedapplicationcodegoeshere。
Its implementation consists of three functions: a constructor, a method that dynamically creates a script tag and thereby runs the Yahoo!
该对象包括三个函数:构造器、动态创建脚本标记从而运行Yahoo !
With this approach the browser application makes an asynchronous request for data from the server either using XMLHttpRequest or a script tag.
这一方式中浏览器应用会使用XMLHttpRequest或者脚本标记对服务器数据发起异步的请求。
When the user submits a search, an API call is made by dynamically adding a script tag to the page and specifying the name of a callback function.
用户提交搜索时,会动态添加一个脚本标记到页面并指定回调函数的名称,从而进行一次API调用。
It might be tempting to set some sort of timer before creating the dynamic script tag and just assume the JSON has arrived after, say, three seconds.
在创建动态标记之前设置某种定时器,然后假定JSON在某个时间,比如说3秒之后到达,这种方法初看起来似乎可行。
Now let's refactor the test to use a general purpose mocking framework. We do this by adding a single script tag to the test page and rewriting the test like this.
现在让我们重构测试,使用一种通用的mocking框架。
If the retrieved tag is for the first movie in the list, the script starts to play that movie right away.
如果检索的标签是列表中的第一部电影,脚本立即开始放映这部电影。
Every system that runs the script needs access to the new tag.
每一个运行这段脚本的系统都需要访问新的标签。
Finally, the script closes the tag.
最后脚本结束标记。
Finally, the script closes the tag.
最后脚本结束标记。
应用推荐