📅  最后修改于: 2022-03-11 15:04:26.335000             🧑  作者: Mango
var multiSpacesString="I have some big spaces.";
var singleSpacesString=multiSpacesString.replace(/ +/g, ' ');//"I have some big spaces."