WMLScript getHost() 函数

getHost() 函数返回在 url 参数中规定的主机。

语法

n = URL.getHost(url)
成分 描述
n 从函数返回的字符串。
url 一个字符串。

例子

var a = URL.getHost("http://www.cnn84.com/school/w3c/wml");
var b = URL.getHost("/wml/functions");

结果

a = "www.cnn84.com/school/w3c"
b = ""
系统帮助 | 给我留言 | 收藏本站
Copyright © 2005-2008 www.cnn84.com All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南