WMLScript getPath() 函数

getPath() 函数返回 URL 中规定的路径。

语法

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

例子

var a = URL.getPath("http://cnn84.com/school/w3c/wml/tips.htm");
var b = URL.getPath("http://cnn84.com/school/w3c");

结果

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