本文主要是介绍JS - Lodash记录,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
const _ = require('lodash');let user = _.merge(user, {statusOfUser: 1}, _.pick(req.body, ['qqNum', 'phone', 'username']));
let user = _.merge(req.userModel, _.omit(req.body, ['deleted', 'type', 'password', 'salt', 'avatar', 'statusOfUser', 'changeReason']));
这篇关于JS - Lodash记录的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!