摘要: String.prototype.repeat=function(num){ return (new Array(num+1)).join(this) } console.log('good'.repeat(3)) 阅读全文
posted @ 2016-08-15 15:39 h5c3 阅读(237) 评论(0) 推荐(0) 编辑
摘要: String.prototype.repeat=function(num){ return (new Array(num+1)).join(this) } console.log('good'.repeat(3)) 阅读全文
posted @ 2016-08-15 15:38 h5c3 阅读(91) 评论(0) 推荐(0) 编辑