获取当时时间 yyyy-MM-dd hh:mm:ss

new Date(new Date().getTime() + 1000 * 60 * 60 * 8).toJSON().substr(0, 19).replace("T", " ")
posted @ 2022-11-11 14:48  果茶加冰  阅读(21)  评论(0)    收藏  举报