🌈 搜索
📅  最后修改于: 2022-03-11 15:04:32.005000             🧑  作者: Mango
const regex = new RegExp(oldString, 'g'); const replacedWord = stringToBeChanged.replace(regex, newString);