If it is unable to determine if a variable declared like url_3 is a server-relative url, then all requests that are issued in this way will result in dead links.
如果不能判断像url_3那样声明的变量是否是一个服务器-相对url,那么所有以这种方式发出的请求都将导致死链。
Listing 1 shows a relative URL example.
清单1显示了一个相对url示例。
It turned out that eXist didn't resolve the relative URL used in the document type declaration.
这表明eXist没有解析文档类型声明中使用的相对url。
In this case, the SWF is being served from the same server and path as the HTML file, so a relative URL works fine.
本例中,SWF来自和HTML文件相同的服务器和路径,因此可以使用一个相对url。
The browser appends the relative URL to either the current request URL or to the value of the HTML base tag (if any).
浏览器可以将相对url附加到当前请求url或html基标记的值后(如果有)。
If a relative URL is used in the XHTML link, then the readability of the printed version may be confusing to a reader.
如果在XHTML链接中使用相对url,那么打印版本可能会使读者觉得迷惑。
An application can also specify a "relative URL", which contains only enough information to reach the resource relative to another URL.
应用程序也可以指定一个“相对url”,它只包含到达相对于另一个URL的资源的足够信息。
However, the query needs to be run from the directory containing the graph, because it is specified using a relative URL in the query's from clause.
但是,查询需要在包含图的目录中运行,因为该图是在查询的from子句中用相对url指定的。
The value is a relative URL that is combined with the base URL of the HTML page to specify the manifest URL, the contents of which are in Listing 2.
该值是一个相对url,它结合html页面的基url来指定清单(manifest) URL,其内容如清单2所示。
If the base URL does not start with a forward slash, then it is assumed to be a relative URL, in which case the addition of a context name is unnecessary.
如果这个基本url不是以斜杠开始的,那么就认为它是一个相对url,这时就不必添加上下文名称。
You can specify the hostname, but in general, Ajax requests must come from the same server and port as the page making the request, so I'll just use a relative URL.
可以指定主机名,但是一般来说ajax请求必须来自与发出请求的页面相同的服务器和端口,所以我们只使用相对url。
The last thing that every developer should know is the difference between an absolute and relative URL as well as how to turn a relative URL into its absolute form.
开发人员需要知道的最后一件事情是绝对和相对url之间的区别,以及如何将相对url转化为绝对url。
As an example, if an XML element contains a link that USES a relative URL, the absolute URL to be linked will be determined by referring to the base URI of the element.
比方说,如果一个XML元素包含使用相对url的链接,要链接的绝对URL就要通过参考该元素的基url来决定。
The manifest file USES the common OpenOffice namespace, and mostly comprises a list of entry elements that give the Internet media type (IMT) and relative URL for each file.
清单文件使用公共的OpenOffice名称空间,并通常包括一个向每个文件提供因特网媒体类型(IMT)和相关url的项元素列表。
Usually, you can refer to the file using a relative URL, just as you would in an ordinary HTML page. Here's an example of referring to a file named myimage.png that's in a subfolder named images.
很简单,就像一般的HTML页面一样,运用相对路径,下面是个例子,指向其子文件夹下的一张文件名为myimage.png 的图片。
Usually, you can refer to the file using a relative URL, just as you would in an ordinary HTML page. Here's an example of referring to a file named myimage.png that's in a subfolder named images.
很简单,就像一般的HTML页面一样,运用相对路径,下面是个例子,指向其子文件夹下的一张文件名为myimage.png 的图片。
应用推荐