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