本帖最后由 jone_linux 于 2009-07-18 19:26:51 编辑

解决方案 »

  1.   

    去掉了,还是不好用,类里必须要用this的
      

  2.   

    this用乱了,它与Java中的this是不一样的
      

  3.   

    Prototype的Class不是怎么写的
    var AjaxList = Class.create({
    initialize: function(){
    },
    EditSignRow: function(ths){
    ths.innerHTML = "yes";
    ths.onclick = function(){
    this.ConfirmEdit();
    };
    },
    ConfirmEdit: function(){
    alert("dfd");
    }
    });
      

  4.   

    EditSignRow: function(ths){
      var self = this;
      ths.innerHTML = "yes";
      ths.onclick = function(){
        self.ConfirmEdit();
      };
    }
      

  5.   

    谢谢,好用了,呵呵
    不过请教下为什么要把this转化一下呢?
      

  6.   

    C[this.vtype] is not a function  这个是啥错?? 前面还有个C