1 2 3 4

取对象除了某个属性之外的属性组成的对象

const _ = require('lodash');

 const totalParams = {
      action,
      app_key: key,
      utc_timestamp: new Date().getTime(),
      biz_content
    };

const queryString = stringify(_.omit(totalParams, [ 'biz_content' ]));
//totalParams这个对象中除了biz_content以外的值。

 

posted @ 2019-08-06 15:03  红鲤鱼与LV  阅读(589)  评论(0编辑  收藏  举报