charAt
種類
メソッド
書式
文字列.charAt(位置)
解説
文字列から1文字抜き出します。最初の文字の位置が0,次が1になり以後1ずつ増えていきます。
サンプルコード
str = "ABCDECDE";
n = str.charAt(3);
alert("結果は"+n+"です");
実際のスクリプトを
ダウンロード