how to remove “,” from a string in javascript

后端 未结 6 527
我在风中等你
我在风中等你 2020-12-24 00:03

original string is \"a,d,k\" I want to remove all , and make it to \"adk\".

I tried code below but it doesn\'t work.

6条回答
  •  余生分开走
    2020-12-24 00:47

    If U want to delete more than one characters, say comma and dots you can write

    
    

提交回复
热议问题