码云 JS 参考手册 JavaScript中的 getHours() 方法 定义和用法 getHours() 方法可返回时间的小时字段。 语法 Date.get... getHours() JavaScript