Very simple little question, but I don't quite understand how to do it.(非常简单的小问题,但我不太明白该怎么做。)
I need to replace every instance of '_' with a space, and every instance of '#' with nothing/empty.(我需要用空格替换'_'的每个实例,并且'#'的每个实例都没有/空。)
var string = '#Please send_an_information_pack_to_the_following_address:';
I've tried this:(我试过这个:)
string.replace('#','').replace('_', ' ');
I don't really chaining commands like this, but is there another way to do it in one?(我不是真的链接这样的命令,但还有另一种方法可以做到这一点吗?)
ask by Shannon Hochkins translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…