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 = ""