摘要: 假设有一input,<input id="txtUserName" name="txtUserName" value="">给input输入的值去空格:$.trim($('#txtUserName').val())注:只能去掉左右两边空格,中间的空格去不掉。 阅读全文
posted @ 2011-03-12 11:52 thekingofreturn 阅读(3806) 评论(0) 推荐(0) 编辑