摘要: 1 function counter(n){ //Function argument n is the private variable 2 return{ 3 //Property getter method returns and increments private counter var. 4 get count(){return n++;}, 5 //Property setter doesn't allow the value o... 阅读全文
posted @ 2013-01-15 16:14 arthur_d 阅读(183) 评论(0) 推荐(0) 编辑