我需要将时间存储在 MongoDB 中。用户只需输入时间,例如“05:20”作为字符串,我需要转换并存储这个时间。
有小费吗?
我一直在尝试使用 Date 对象,但没有成功。
mongodb node.js angular
angular ×1
mongodb ×1
node.js ×1