WMLScript getParameters() 函數
getParameters() 函數返回 URL 的最后一個路徑片段中的參數。
語法
n = URL.getParameters(url)
成分 | 描述 |
---|---|
n | 從函數返回的字符串。 |
url | 一個字符串。 |
例子
var a = URL.getParameters("http://codew3c.com/wml;tip"); var b = URL.getParameters("http://codew3c.com/wml");
結果
a = "tip" b = ""