JS中没有继承这一概念。
类的写法:
  function Node(Descript,ParentId,Id,IsSubNode) {
      this.Descript=Descript;
      this.ParentId=ParentId;
      this.Id=Id;
      this.IsSubNode=IsSubNode;
  }Node k=new Node("Root",0,1,true);
...

解决方案 »

  1.   

    那有没有重写?比如
    function ck()
    function ck(arg)
    function ck(arg1,arg2)
      

  2.   

    那有没有重写?比如
    function ck()
    function ck(arg)
    function ck(arg1,arg2)
    绝对不报错。。
      

  3.   

    <script>
    function superClass() {  this.bye = superBye;
      this.hello = superHello;
      
      function superHello() {
        return "Hello from superClass";
      }
      
      function superBye() {
        return "Bye from superClass";
      }
    }function subClass() {
      this.inheritFrom = superClass;
      this.inheritFrom();
      this.bye = subBye;
      
    }function subBye() {
      return "Bye from subClass";
    }var newClass = new subClass();
    alert(newClass.bye());
    alert(newClass.hello());</script>