|
$.trim() 作用是去掉首尾空格,中間的空格不去 例: var str = " 123 456 ! " $.trim(str) //或者 jQuery.trim(str)輸出結(jié)果>>>>"123 456 !"
|
|
|
來自: 昵稱18349714 > 《基礎(chǔ)篇》