鸿蒙开发技巧---去除字符串两端的空格
方法介绍:
trim(): string;
官方解释:
/** Removes the leading and trailing white space and line terminator characters from a string. */ trim(): string;
翻译:
从字符串中移除前导和尾随的空白字符以及行终止符。
trim(): string;
/** Removes the leading and trailing white space and line terminator characters from a string. */ trim(): string;
从字符串中移除前导和尾随的空白字符以及行终止符。