字符串替换指定字符

1 const str='t/Mwh';
2 str.replace(/Mwh/, "GJ")

 

posted @ 2022-02-22 14:13  葫芦娃啊  阅读(195)  评论(0编辑  收藏  举报