function person(name,age){ this.name = name; this.age = age; } person.from = 100; person.run = function(){ console.log("跑步"); } var xiaoming = new person("ming",25); console.log(person);