2015年7月31日

js中java式的类成员

摘要: function Range(from,to,x){ //实例(对象)字段 this.x=x;}//类字段Range.Y="类字段";//类方法Range.s=function(){ return '类方法';};Range.prototype={ construct... 阅读全文

posted @ 2015-07-31 00:35 左小兵 阅读(623) 评论(0) 推荐(0) 编辑

导航