摘要: http://www.cnblogs.com/xiaoshatian/archive/2011/02/14/1954032.html 阅读全文
posted @ 2011-03-26 11:39 opqrst 阅读(101) 评论(0) 推荐(0) 编辑
摘要: function Student(){ this.name = "khan"; //去掉this和有this的区别 this.info = function(){ alert('info()'); } } var student = new Student(); //创建Student对象student document.write("对象形式1: "+student.name); Student.name = "test"; //声明静态变量 document.write("静态访问1:"+Stu 阅读全文
posted @ 2011-03-11 14:16 opqrst 阅读(1241) 评论(1) 推荐(0) 编辑