黑铁时代
Programing is not only one kind of technology, but also one kind of art.
摘要: 一 创建“类中”的私有变量function Obj() { var _varible = 1; function increase() { ++ _varible; } function getVarible() { return _varible; } this.method = function() { increase(); alert( getVarible() ); } } var obj1 = new Obj(); obj1.method();var obj2 = new Obj... 阅读全文
posted @ 2012-07-05 22:41 黑铁时代 阅读(496) 评论(0) 推荐(0) 编辑