const type = [ {key:'TimeWeiDu',value:'时间维度'}, {key:'TranType',value:'交易类型'}, {key:'OrderType',value:'订单类型'}, {key:'OrgId',value:'机构'}, {key:'SchoolName',value:'校区'}, {key:'LessonClassName',value:'课程类别'}, {key:'LessonName',value:'课程'}, {key:'ClassName',value:'班级'}, {key:'StuName',value:'学员'}, {key:'JingBanYuan',value:'经办员'}, {key:'XiaoShouYuan',value:'销售员'} ] let condition={}; type.map(itm=>{ condition[itm.key] = itm.value }) console.log('1',condition) /* { ClassName:"班级" JingBanYuan:"经办员" LessonClassName:"课程类别" LessonName:"课程" OrderType:"订单类型" OrgId:"机构" SchoolName:"校区" StuName:"学员" TimeWeiDu:"时间维度" TranType:"交易类型" XiaoShouYuan:"销售员" } */