如何用javascript实现一个时钟?function init(){ clock() setInterval(clock,1000)}function clock(){ var now = new Date() var ctx = document.getElemen2023-02-27JavaScript130