This method may be used to trim whitespace from the beginning and end of a string; in fact, it trims all ASCII control characters as well.

  • 它除了截断空格外,还截断两端所有的控制字符。共5种字符(而我们上面给出的方法可以截断任何多个任意的字符):
目录 查词历史