摘要: /*1.自定义用户类 name:用户名称,age:年龄*/function User(name,age){ this.Name=name; this.Age =age;}/*2.为Age 属性添加get和set方法,方法1*/// Field.prototype = {// get Age(){// return this._Age;// },// set Age(age){// this._Age = age;// ShowSetInfo(this);// ... 阅读全文
posted @ 2012-08-02 11:06 小罗》 阅读(10502) 评论(1) 推荐(1) 编辑