es6之字符串 fen同学 2020-08-09 185 阅读1分钟 1、字符串填充 String.prototype.padEnd(长度, 字符),填充字符串到指定长度。 String.prototype.repeat(次数)