嵌套for循环。举个栗子:for(i=0;i<=5;i++){for(j=0;j>=i+1;j--){}}
var myarr = new Array('fn1','fn2','fn3');for(var key in myarr){ your_function(myarr[key]); }