function getTime(){
var time = new Date();
var h = time.getHours();
h = h < 10
案例:写一个封装函数返回当前的 时分秒
最新推荐文章于 2022-06-02 10:11:09 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
function getTime(){
var time = new Date();
var h = time.getHours();
h = h < 10