TRIM中文 (繁體)翻譯:劍橋詞典 - Cambridge Dictionary trim noun (CUT) [ S ] an act of making something, especially someone's hair, tidier or more level by cutting a small amount off it 修剪,修整
Trim(函数)_百度百科 trim () 函数移除字符串两侧的空白字符或其他预定义字符。 功能除去字符串开头和末尾的空格或其他字符。 函数执行成功时返回删除了string字符串首部和尾部空格的字符串,发生错误时返回空字符串()。 如果任何参数的值为NULL,Trim () 函数返回NULL。
String. prototype. trim () - JavaScript | MDN The trim() method of String values removes whitespace from both ends of this string and returns a new string, without modifying the original string To return a new string with whitespace trimmed from just one end, use trimStart() or trimEnd()