SOURCE

funtion People(name){
  this.name = name;
  //对象方法
  this.introduce = function(){
    consol.log("我的名字是——"+this.name);
  }
}
//类方法
People.Run = function(){
  console.log("I am Running !");
}
//原型方法
People.prototype.IntroEn = function(){
  console.log("I am "+ this.name +" !");
}

var p = new People("Doris");
p.introduce();
People.Run();
p.IntroEn();
console 命令行工具 X clear

                    
>
console