解决方案 »

  1.   

    var arr = [4,5,6,7];var temp=[];
    function test(){
    $.each(arr,function(i,j){
    temp[i] = bibao(j);
    })
    }
    function bibao(a){
    return function (){
    alert(a);
    }
    }
    test();
    temp[0]();
    temp[1]();
    temp[2]();
    temp[3]();
    亲,你要的是这个效果吗?
      

  2.   


    谢谢你,我想让temp[i],动态返回,就是每次循环i次的时候,动态返回temp[i]
      

  3.   

    说简单一点,就是在EACH外面动态返回I,但是最好不要用数组,因为我每次返回的不是一个整体,而是他们的个体