📜  js 修剪所有空格 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:20.345000             🧑  作者: Mango

代码示例4
var string = "     Hello World!     "
console.log(string);
//"     Hello World!     "
string2 = string.trim();
console.log(string2);
//"Hello  World!"