🌈 搜索
📅  最后修改于: 2022-03-11 15:02:17.482000             🧑  作者: Mango
var str = '[T] and [Z] but not [T] and [Z]'; var result = str.replace('T',' ').replace('Z',''); console.log(result);