摘要: String.prototype.trim = function (char, type) { if (char) { if (type == 'left') { return this.replace(new RegExp('^\\'+char+'+', 'g'), ''); } else if 阅读全文
posted @ 2018-01-25 12:05 者行孙某 阅读(6501) 评论(2) 推荐(0)