WMLScript getParameters() 函数
getParameters() 函数返回 URL 的最后一个路径片段中的参数。
语法
n = URL.getParameters(url)
成分 |
描述 |
n |
从函数返回的字符串。 |
url |
一个字符串。 |
例子
var a = URL.getParameters("http://58how.com/wml;tip");
var b = URL.getParameters("http://58how.com/wml");
结果
a = "tip"
b = ""
发表评论 取消回复