我想知道如何将数字传递给我为循环创建的函数。例如,我有一个循环,它在运行时只是将一个值加 1。我将如何传递我希望循环在函数中运行的次数?像这样:
var i = 0;
function blahBlah (i ?){
for (i=0,i>10(this is what I want to pass to the function),i++){
i++;
}
Then call the function:
blahBlah(number of times I want it to run);