岁月静好,淡然前行
var life = (function(think, done){
var happiness = 0, target = 0;
if(think == true){
target++;
happiness--;
if(done == true){
target++;
}else{
target = 0;
}
}else{
target=0;
}
return {happiness : happiness, target : target};
}(isThink, idDone));