if(parseInt(curHours/10) != parseInt(nextHours/10))
连这里也加,是为什么?
因为除以 10 之后得到的是一个浮点数,而我们只需要其整数部分,所以用 parseInt 取其整数部分