trimStart()消除字符串头部的空格 let str = " abc "; str.trimStart(); // "abc "
trimEnd()消除尾部的空格。 let str = " abc "; str.trimEnd(); // " abc"