摘要: 给数组去除重复值 Array.prototype.distinct = function() { var arr = this, result = [], i, j, len = arr.length; for (i = 0; i < len; i++) { for (j = i + 1; j < 阅读全文
posted @ 2018-06-12 23:03 江山一族 阅读(1564) 评论(0) 推荐(0) 编辑
摘要: await model.photo.update({ _id: { $in: photoIdsParam } }, { $addToSet: { customerIds: { code: custCode, isDel: 'true' } } }, { upsert: true }) 阅读全文
posted @ 2018-06-12 18:54 江山一族 阅读(442) 评论(0) 推荐(0) 编辑