1
let person={
    age: 18,
    name: '阿乾',
    sex: "男"
}

// func1:
const param = (({name,sex}) => ({name, sex}))(person)
console.log(param) // {name: "阿乾",sex: "男"}

// func2:
let {age,...params} = person
console.log(params)  // {name: "阿乾",sex: "男"}

亲爱的阿乾
885 声望22 粉丝

此时无能为力,此心随波逐流