摘要:
闭包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= 阅读全文