📜  保存函数中的猫鼬回调 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:27.830000             🧑  作者: Mango

代码示例1
documentFoo.save(function(err, documentFoo, [isSaveSuccessful]){
    if(err){ return next(err); }

    if (isSaveSuccessful === 1){

        // documentFoo has been saved correctly 
        // do stuff with the saved documentFoo
    }
}