function Foo(name,age){
    this.name = name;
    this.age = age;
    this.class = 'f1';
    // 
}

构造函数