我觉得你的代码不全,光是上面这些没办法知道this所指的对象

解决方案 »

  1.   

    this都是在function里的,其实只要解释一下语法就行了
      

  2.   

    (1) this.document = oTable.ownerDocument || oTable.document
    //如果oTable.ownerDocument存在,则this.document=oTable.ownerDocument 否则this.document=oTable.document(2) this.sortTypes = oSortTypes || []
    //this.sortTypes = oSortTypes 或 this.sortTypes =[]
    //sortTypes为自定义属性,如果oSortTypes 指定了有效的值,则将oSortTypes 赋值给
    this.sortTypes ;
    //否则,this.sortTypes为一空数组。(3) if (typeof this.onchange == "string")
    this.onchange = new Function(this.onchange);
    if (typeof this.onchange == "function")
    this.onchange();//如果this.onchange的类型为字符串,则为其创建方法
    //即this.onchage事件没有绑定function,则传建一个function并绑定。//如果this.onchange的类型为function,则调用该function。
    //即this.onchage事件绑定了某个function,则在onchange的时候调用该function。