Содержание:
jQuery.trim( str )Возвращает: String
Описание: Удаляет символы пробелов, табов и переносов строк из начала и конца строки.
-
Добавлен в версии: 1.0jQuery.trim( str )
-
strТип: StringThe string to trim.
-
The $.trim()
function removes all newlines, spaces (including non-breaking spaces), and tabs from the beginning and end of the supplied string. If these whitespace characters occur in the middle of the string, they are preserved.