ฟังก์ชัน getParameters() ของ WMLScript
ฟังก์ชัน getParameters() ของ WMLScript ส่งผลกลับค่าที่อยู่ในส่วนท้ายของส่วนทางเดินของ 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 = ""