WMLScript resolve() 関数
resolve() 関数は、ベース URL と相対 URL を基に絶対 URL を返します。
構文
n = URL.resolve(baseurl, relativeurl)
成分 | 説明 |
---|---|
n | 関数から返される文字列。 |
baseurl | 一つの文字列。 |
relativeurl | 一つの文字列。 |
例
var a=URL.resolve("http://codew3c.com", "/wml/n.wml");
結果
a = "http://codew3c.com/wml/n.wml"