SOURCE

const fomtDat={
    userName:"远方",
    age:25,
    id:1,
    code:100,
    email:'2222@com'
}

const {userName,age,id,code} = fomtDat
 console.log(userName)

const data={
    userName,
    age,
    id,
    code
}
console.log(data)
console 命令行工具 X clear

                    
>
console