想到了,使用Pick就可以了,如下: const obj = { name: 'Marcelo', age: 27, role: ['admin'] }; type ObjType = { [key in keyof typeof obj]: typeof obj[key] } const getAttr = (...attribute: Array): Pick[number]> => { const result = {}; for (const attr of attribute) { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore result[attr] = obj[attr]; } return result as Pick[number]>; }; const attr = getAttr('age', 'name'); 有更好的答案,欢迎补充!