删除对象里的某几项返回新对象

使用Lodash
 
var object = { 'a': 1, 'b': '2', 'c': 3 };
 
_.omit(object, ['a', 'c']);
// => { 'b': '2' }

 

方法一:

this.formInline = this._.omit(this.formInline, ['postList'])

 

方法二:

delete this.formInline.postList

原文地址:https://www.cnblogs.com/hellofangfang/p/14355816.html