Funkcja removeAt() WMLScript

Funkcja removeAt() dzieli ciąg znaków na elementy i usuwa określony element.

Gramatyka

n = String.removeAt(string, index, separator)
Składnik Opis
n Ciąg znaków zwracany przez funkcję.
string Oryginalny ciąg znaków.
index Indeks elementu do usunięcia.
separator Separator.

Przykład

var a = String.removeAt("Odwiedź CodeW3C.com!",0," ");
var b = String.removeAt("Odwiedź CodeW3C.com!",0,"W");
var c = String.removeAt("Odwiedź CodeW3C.com!",-2," ");
var d = String.removeAt("Odwiedź CodeW3C.com!",10," ");

Wynik

a = "W3School!"
b = "3School!"
c = "W3School!"
d = "Odwiedź"