JavaScript 字符串乘法函数封装

String.prototype.multiplyTimes = function(n) { return Array.prototype.join.call({length:n+1}, this); };   转载于:https://www.cnblogs.com/yummylucky/p/11418776.htmlhtml
相关文章
相关标签/搜索