手写字符串 trim 方法 保证兼容性 String.prototype.myTrim = function () { return this replace(/^s+/, '').replcae(/s+$/, '') }