摘要:
闭包Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->functionPerson(firstName,lastName,age){//私有变量:var_firstName=firstName;var_lastName=lastName;//公共变量:this.age=age;//方法:this.getName=function(){return(firstName+""+lastName);};this.SayHello= 阅读全文
posted @ 2010-06-30 21:42
墨❤
阅读(185)
评论(0)
推荐(0)