老师 老师 看这里
发现一个问题哦
if(parseInt(curhouse/10) != parseInt(nexthouse/10)){
addBalls(MARGIN_left + 0 , MARGIN_top , parseInt(curhouse/10));
}
if(parseInt(curhouse%10) != parseInt(nexthouse%10)){
addBalls(MARGIN_left + 15 *(RADIUS + 1) , MARGIN_top , parseInt(nextseconds%10));
}
if(parseInt(curminutes/10) != parseInt(nextminutes/10)){
addBalls(MARGIN_left + 39 *(RADIUS + 1) , MARGIN_top , parseInt(nextseconds/10));
}
if(parseInt(curminutes%10) != parseInt(nextminutes%10)){
addBalls(MARGIN_left + 56 *(RADIUS + 1) , MARGIN_top , parseInt(nextseconds%10));
}
if(parseInt(curseconds/10) != parseInt(nextseconds/10)){
addBalls(MARGIN_left + 80 *(RADIUS + 1) , MARGIN_top , parseInt(nextseconds/10));
}
if(parseInt(curseconds%10) != parseInt(nextseconds%10)){
addBalls(MARGIN_left + 95 *(RADIUS + 1) , MARGIN_top , parseInt(nextseconds%10));
}
parseInt(curminutes%10) 是不是应该写成 parseInt(nextseconds%10) 呢? 不然的话 就会发生 除了秒的个位 别的位数会 产生 倒计时比生成的小球快1s 的问题 我不知道我是不是对的,