摘要: 我们常用的有以下几种方法来用JavaScript写一个“类”:1. 构造函数(public属性和方法)1: function Person(iName, iAge){ 2: this.name=iName; //public 3: this.age=iAge; //public 4: th... 阅读全文
posted @ 2014-09-26 16:05 会飞的鱼儿游 阅读(2460) 评论(0) 推荐(0)