日期:2014-05-16 浏览次数:20352 次
function Person(name, age, email){ this.name = name; this.age = age; this._email = email; } function _Person_show_me(){ alert('我叫' + this.name + ',我' + this.age + '岁了,我的email是' + this._email); } Person.prototype.show_me = _Person_show_me; var he = new Person('小何', 28, 'baijun.he@163.com'); he.show_me();