每次猎取到的变量值不同的函数写法

时间:2015-03-30 15:48:57   收藏:0   阅读:104

var classIdInMemory = {
lastVal: publicClassName,
set:function(x){
if(x != ""){
this.lastVal = x;
}
},
get:function(){
return this.lastVal;
}
};
classIdInMemory.set(classid);
publicClassName = classIdInMemory.get();

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!