此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
楼主【zhangxuyu1118】截止到2008-07-03 09:34:20的历史汇总数据(不包括此帖):
发帖的总数量:48                       发帖的总分数:2420                     
结贴的总数量:42                       结贴的总分数:1900                     
无满意结贴数:0                        无满意结贴分:0                        
未结的帖子数:6                        未结的总分数:520                      
结贴的百分比:87.50 %               结分的百分比:78.51 %                  
无满意结贴率:0.00  %               无满意结分率:0.00  %                  
楼主加油

解决方案 »

  1.   

    function showSomething() 
    {
      alert(arguments.length); 
    }function Mm(aFunction) 

      if (arguments.length <3) 
      { 
        return; 
      } 
      alert(arguments.length); 
      this.index = arguments[0]; 
      this.data = arguments[1];   //这里我想把外部的一个函数带参数绑定到本类的一个方法中,该怎么做   Mm.showdata = aFunction;  //怎么样设置 aFunction 中的参数呢}
      

  2.   

    是否这样?
    <script>
    function showSomething() 

      alert(arguments.length); 
    } function Mm(aFunction) 

      this.showdata = function(){
    showSomething.apply(this,arguments);
      }
    }var mm = new Mm(showSomething);
        mm.showdata('a','b');
    </script>
      

  3.   

    刚刚没用你传的函数,我的意思是这样的
    <script>
    function showSomething() 

      alert(arguments.length); 
    } function Mm(aFunction) 

      this.showdata = function(){
    aFunction.apply(this,arguments);
      }
    }var mm = new Mm(showSomething);
        mm.showdata('a','b');
    </script>