摘要: 编写一个函数repeat_str,该函数将给定字符串src精确地重复count几次。 function repeatStr (n, s) { if(n > 0){ return s.repeat(n); }else{ return s; } } //测试 console.log(repeatStr( 阅读全文
posted @ 2020-10-14 12:47 离曈 阅读(101) 评论(0) 推荐(0) 编辑