摘要: javascript没有类,但有对象。下面是javascript面向对象时调用的三种办法。第一种:function Student(name){ this.name = name; this.hello = function(){ alert('hello, '+this.name+'!'... 阅读全文
posted @ 2015-07-28 22:56 李雷雷alexkn 阅读(213) 评论(0) 推荐(0) 编辑