[英]How to store the Live Time in Json File using Node js?
I'm new in node js, when I create the Countdown Clock, Using With Nodejs and javascript,我是 node js 的新手,当我创建倒计时时钟时,使用 Nodejs 和 javascript,
I'm facing an issue with When the server restarted The Timer also Restarted我遇到了服务器重新启动时计时器也重新启动的问题
JSON File Using JSON文件使用
StartTime.json
"UserTime": [
{
"id": 1,
"name": "Jack",
"TimeDuration": 25:00
},
{
"id": 2,
"name": "Mike",
"TimeDuration": 30:00
}
]
StartTime -> 30:00 mins, ReminingLiveTime->24:52; StartTime -> 30:00 分钟,ReminingLiveTime -> 24:52;
After Restarting I need the Same ReminingLiveTime to be stored on the server.重新启动后,我需要将相同的 ReminingLiveTime 存储在服务器上。
I understood Your Question, Initially you Just Create Custom Api, Before Restarting The Server Pass the Time On it我理解你的问题,最初你只是创建自定义 Api,然后在重新启动服务器之前传递时间
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.