// 需要对对象属性进行数组操作时,使用Object.entries()方法
var list = ['V11046_052','V11046_051','V11046_50','V11046_0511']; var column = [{'观测时间':'D_DATETIME'},{'小时内极大风速出现时间':'V11046_052'},{"过去6小时极大瞬时风向":"V1156"}]; var list1 = []; column.forEach((v, index) =>{ const entries = Object.entries(v); var value1 = ''; for (const [key, value] of entries) { value1 = value } list.forEach((v1, index1) => { if(value1 == v1) { list1.push(v) } }) }) console.log(list1)标签:column,list,value,V11046,数组,entries,var From: https://www.cnblogs.com/jerrycoco/p/17901281.html