SOURCE

class Foo {
  static bar () {
    this.baz();
  }
  static baz () {
    console.log('静态baz');
  }
  bar1(){
    Foo.baz();
  }
  bar2(){
    this.baz();
  }
  baz () {
    console.log('实例baz');
  }
}

Foo.bar() // hello
var foo = new Foo();
foo.bar1();

foo.bar2();
foo.baz();
console 命令行工具 X clear

                    
>
console