WMLScript removeAt() fonksiyonu

removeAt() fonksiyonu, bir dizgeyi elementlere ayırır ve belirtilen elementi siler.

Sözdizimi

n = String.removeAt(string, index, separator)
Bileşen Açıklama
n Fonksiyondan dönen string.
string Orjinal string.
index Silinmesi gereken elemanın alt indeksi.
separator Ayırıcı.

Örnek

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

Sonuç

a = "W3School!"
b = "3School!"
c = "W3School!"
d = "Ziyaret Et"