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