結果 : javascript replace character in string by index