Javascript OO学习
摘要:
Javascript中类的建立方法及功能扩展、继承。 1.类建立,由于Javascript没有Class之类关键字,所以类的建立以function为关键字 function Person() //Person类的建立(结构) { //属性 this.Name; this.Age = 20; //默认为20 //方法 this.SetTel = function() { //do... 阅读全文
posted @ 2008-10-06 20:41 Kaven.lau 阅读(195) 评论(0) 推荐(0) 编辑