摘要:
首先让我们来回顾一下第一章中介绍的例子:第一章 1 function Person(name) { 2 3 this.name = name; 4 5 } 6 7 Person.prototype = { 8 9 getName: function() {10 11 return this.name;12 13 }14 15 }16 17 18 19 function Employee(name, employeeID) {20 21 this.name = name;22 23 this.employeeID = employeeID;24 25 }26 27 Employee.pr... 阅读全文
posted @ 2014-03-13 10:03
浅笑esmiler
阅读(163)
评论(0)
推荐(0)

浙公网安备 33010602011771号