在一個替換呼叫中替換多個字符非常簡單的小問題,但我不太明白該怎么做。我需要用空格替換'_'的每個實例,并且'#'的每個實例都沒有/空。var string = '#Please send_an_information_pack_to_the_following_address:';我試過這個:string.replace('#','').replace('_', ' ');我不是真的鏈接這樣的命令,但還有另一種方法可以做到這一點嗎?
在一個替換呼叫中替換多個字符
皈依舞
2019-08-06 15:15:40