给JavaScript的String对象添加一个trim()方法Published on September 10, 2011var s2 = " 叽歪 "; alert(s.trim() + s2);Keep reading / 查看全部