返回 WMLScript URL 库参考手册
getHost() 函数返回在 url 参数中规定的主机。
n = URL.getHost(url)
var a = URL.getHost("http://www.w3school.com.cn/wml"); var b = URL.getHost("/wml/functions");
a = "www.w3school.com.cn" b = ""
Search: