小白的博客

this my!

2008年7月11日

javascrpt 去掉空格

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->//去左空格; function ltrim(s) { return s.replace(/(^\s*)/g, ""); } //去右空格; function rtrim(s) { ... 阅读全文

posted @ 2008-07-11 12:14 baifan 阅读(354) 评论(1) 推荐(0) 编辑

Dilectio Theme is created by: Design Disease brought to you by Smashing Magazine