摘要: 使用正则表达式加上字符串对象的replace函数来实现trim功能。$("#streamid").val().replace(/(^[\\s]*)|([\\s]*$)/g, "") 阅读全文
posted @ 2011-07-13 10:01 k1988 阅读(150) 评论(0) 推荐(0) 编辑