メソッド Type method
文字列.lastIndexOf(検索文字列,検索開始位置) Format string. LastIndexOf (search string, position search)
Commentary
文字列を末尾から検索します。 You can search a string from the end. 検索開始位置は省略することができます。 Find the starting position can be omitted. 省略した場合は文字列の最後から検索します。 If you omit from the end of the search string. 検索結果は文字列がみつかった位置を示します。 Results indicate the position MITSUKATTA string. 見つからなかった場合は-1を返します。 If not found returns -1.
サンプルコード Sample code
str = "Quartz Extream"; str = "Quartz Extream";
n = str.lastIndexOf("a"); n = str.lastIndexOf ( "a");
outputs[0] = n; outputs [0] = n;