- 博客(1)
- 收藏
- 关注
原创 JS去掉字符串空格函数
Javascript中为String对象添加 Trim() 方法 //自己动手为string添加Trim function String.prototype.Trim() {return this.replace(/(^/s*)|(/s*$)/g,"");} function String.prototype.Ltrim(){return
2006-09-28 11:28:00
481
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅