15.1. The string methods .trimStart() and .trimEnd(). JavaScript already supports removing all whitespace from both ends of a string: > ' abc '.trim() 'abc'.
確定! 回上一頁