摘要: 页面中添加代码 String.prototype.trim=function() { return this.replace(/(^\s*)|(\s*$)/g,'');} 调用:title.trim() 阅读全文
posted @ 2016-01-29 16:19 zhjahch 阅读(699) 评论(0) 推荐(0)
摘要: toUpperCase 方法返回一个字符串,该字符串中的所有字母都被转化为大写字母 sn.toUpperCase() toLowerCase 方法返回一个字符串,该字符串中的字母被转换为小写字母 sn.toLowerCase() 阅读全文
posted @ 2016-01-29 16:18 zhjahch 阅读(108330) 评论(0) 推荐(3)