📜  javascript 拆分和修剪 - Javascript 代码示例

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

代码示例2
var str=" I have outer spaces ";
var cleanStr=str.trim();//trim() returns string with outer spaces removed