How to replace a string at a particular position

后端 未结 6 1565
深忆病人
深忆病人 2020-12-10 12:30

Is there a way to replace a portion of a String at a given position in java script. For instance I want to replace 00 in the hours column with 12 i

6条回答
  •  难免孤独
    2020-12-10 13:04

    You can direclty use replace() method along with indexOf() of string in Javascript.

提交回复
热议问题