Javascript replace regular expression not working as expected?

前端 未结 1 406
自闭症患者
自闭症患者 2021-01-22 16:24

I have the following routine to replace the Time portion of a datetime string displayed in the options of a drop down list called \"SalesWeek\". The Replace method is not replac

1条回答
  •  猫巷女王i
    2021-01-22 16:37

    You aren't assigning the result.

    item = item.replace(regex,'');
    

    0 讨论(0)
提交回复
热议问题