閱讀360 返回首頁    go 微軟 go windows


jQuery去空格

 
<input name="txtUserName" value=""/>
 
 
給input輸入的值去空格:$.trim($('#txtUserName').val())
 
注:隻能去掉左右兩邊空格,中間的空格去不掉。
 
 
原帖地址:https://www.haogongju.net/art/1095296 

最後更新:2017-04-02 22:16:26

  上一篇:go android巧用background屬性,實現圖片可選擇效果
  下一篇:go android listview的下拉加載