Javascript去掉字符串前后空格
摘要:
function String.prototype.trim(){ return this.toString().replace(/^\s+|\s+$/g,""); } 阅读全文
posted @ 2008-03-24 15:54 老枪 阅读(1686) 评论(0) 推荐(0) 编辑
posted @ 2008-03-24 15:54 老枪 阅读(1686) 评论(0) 推荐(0) 编辑
posted @ 2008-03-24 10:20 老枪 阅读(120) 评论(0) 推荐(0) 编辑