随笔分类 -  Extjs

摘要:var Person = function(name) { this.name = name;} Person.prototype = { word1 : "cccc", sayHello: function() { alert("hi, javaeye, I'm A " + this.name); }}//说明word1:"cccc",表示初始化类变量,它其实与this.name是一样的功... 阅读全文
posted @ 2009-09-16 16:12 jone_linux 阅读(188) 评论(0) 推荐(0)