We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
既然是重复输出,那么我们也可以尝试用递归的方法。
function repeat(str, num) { // 请把你的代码写在这里 var result=""; if(num>0){ return str+repeat(str,num-1); } else{ return result; } } repeat("abc", 3);