slice

メソッド Type method
文字列.slice(開始位置,終了位置) Format string. Slice (start position, end position)
Commentary
文字列を指定した範囲だけ抜き出します。抜KI出SHIMASU only the range specified string. 最初の文字の左の位置が0,次が1になり以後1ずつ増えていきます。 The first character position to the left of 0, since the next one will be an increase.
サンプルコード Sample code
str = "ABCDEFG"; str = "ABCDEFG";
outputs[0] = str.slice(2,5); outputs [0] = str.slice (2,5);