[jQuery] trim()

625 查看

我们可以使用trim() 方法去掉字符串的前后空格,比如:

$('#id span').text().trim()