JavaScript女神:
var girl = {
marriage:false,
waist:60,
mood:'happy'
}
var hair=0;
var function ifMarriage () {
if ( hair < waist ){
girl.marriage:flase
}else {
girl.marriage:true;
return
}
}
for(var day = 0; day<waist; day++){
if( girl.mood=='happy' ){
hair++;
}else{
return hair;
}
ifMarriage();
}
翻译:
待我长发及腰,少年娶我可好