Funzione getPort() di WMLScript
La funzione getPort() restituisce il numero di porta specificato nell'URL.
Sintassi
n = URL.getPort(url)
Componenti | Descrizione |
---|---|
n | Stringa restituita dalla funzione. |
url | Una stringa. |
Esempio
var a = URL.getPort("http://codew3c.com:80"); var b = URL.getPort("http://codew3c.com");
Risultato
a = "80" b = ""