摘要:
一、用function实现:function Person(name) { this.name = name;}Person.prototype.getName = function() { return this.name;}function Author(name, books) { this.inherit=person; this.inherit(name); this.books = books; }var au=new Author("dororo","Learn much");au.name或者同等效力的:function Person(n 阅读全文
posted @ 2012-07-31 16:00
rorodo
阅读(1749)
评论(0)
推荐(0)
浙公网安备 33010602011771号