การเขียนโปรแกรม
ฟังก์ชัน getQuery() ของ WMLScript
getPort() ฟังก์ชันเรียกกลับส่วนของคำถามใน URL
รูปแบบ
n = URL.getQuery(url) | ส่วนประกอบ |
---|---|
คำอธิบาย | n |
ตัวแปรของตัวแสดงที่ได้จากฟังก์ชัน | url |
ตัวแปรของตัวแสดง
ตัวอย่าง var a=URL.getQuery("http://example.com/go.asp?name=bill");
var b=URL.getQuery("http://example.com");
ผลลัพธ์ a = "bill"