var now = moment(), second = now.seconds() * 6, minute = now.minutes() * 6 + second / 60, hour = ((now.hours() % 12) / 12) * 360 + 90 + minute / 12; $('#hour').css("transform", "rotate(" + hour + "deg)"); $('#minute').css("transform", "rotate(" + minute + "deg)"); $('#second').css("transform", "rotate(" + second + "deg)");hour = ((now.hours() % 12) / 12) * 360 + 90 + minute / 12;這個hour的角度,為什么要加上90度
問一個初中數學題,計算時鐘角度
慕無忌1623718
2019-03-22 18:15:38