0
我有我想有鑰匙是當前時間戳其中一個模式:貓鼬設定鍵可變
var mongoose = require('mongoose');
var Entries = new mongoose.Schema({
_id: false,
timeStamp: {
data: Schema.Types.Mixed
}
});
module.exports = mongoose.model('Entries', Entries);
我如何才能讓時間戳是動態的,並拿起new Date();
在每次創建時?