没有什么难度,主要加深对JavaScript的理解var Student = function (name, no) { var name = name; //相当于私有属性 var no = no; this.setName = function (value) { name = value; for (var i = 0; i < this.nameModifyListeners.length; i++) { this.nameModifyListeners[i](this); } } this.... Read More
posted @ 2012-09-16 00:25 如坐夕阳 Views(776) Comments(0) Diggs(0) Edit