???? ???? ?????. ???? "4"?? ???? "04"? ?????. ??? "04"?? ???? "04"? ?????.
? ??:$(".ball_1").html(data.ball_1>=10||data.ball_1.length=3data.ball_1:'0'+data.bal_1||data.ball_1.substring(1) );
??? ?? ??????
???? "4"?? 4? ?????. ? ??? ??? ???? ????
???? "4"?? ????? "04"? ?????. ??? "04"?? ????? "04"? ?????
?? ??
"1" => "01"
"4" => "04"
"99" => "99"
??? ?? ??? ??? ????? 一位數(shù)補(bǔ)零
和 三位數(shù)只保留兩位
var num = '1';
????? = ??<10? '0'+?? : ??;
//??? ??? ??? ??? ?????? ?? ????? ? ? ?
//?? = (??==100 || ??>100) ... : ...