摘要: 1,trim():去除字符串左右两端的空格,在vbscript里面可以轻松地使用 trim、ltrim 或 rtrim,但在js中却没有这3个内置方法,需要手工编写。 <script language="javascript"> String.prototype.trim=function(){re 阅读全文
posted @ 2015-08-11 10:00 we are young 阅读(226) 评论(0) 推荐(0) 编辑