var getValue,setValue; (function(){ var secret=0; getValue=function(){ return secret; }; setValue=function(v){ if(typeof v==="number"){ secret=v; } }; }()); getValue();//0 setValue(123); getValue();//123 setValue(false); getValue();//123
添加回答
举报
0/150
提交
取消