摘要:
javascript里面没有类的概念,对象由对象实例化。 使用原型初始化对象: function Person(){ Person.prototype.name='sophie'; Person.prototype.showName=function(){ console.log(this.name 阅读全文
posted @ 2017-03-22 22:26
sophiehui
阅读(107)
评论(0)
推荐(0)
浙公网安备 33010602011771号