第一步就错了,只有方框,但是检查了好多次跟老师的一样啊
function draw() {
var now =new Date();
var hour =now.getHours();
var minute =now.getMinutes();
var second =now.getSeconds();
drawHour(hour,minute);
drawMinute(minute);
drawSecond(second);
}
setInterval(draw,1000);
function draw() {
var now =new Date();
var hour =now.getHours();
var minute =now.getMinutes();
var second =now.getSeconds();
drawHour(hour,minute);
drawMinute(minute);
drawSecond(second);
}
setInterval(draw,1000);
2017-06-08
举报