SOURCE

let name = "zf"
let p = {
    name :name
}
console.log(p.name)
let name1 = "zff"
let p1 ={
    name1
}
console.log(p1.name1)
//
namekey = "name"
timekey = 'times'
function getKey(key){
    return `${key}.${Date.now()}`
}
let a = {
    [namekey] : "zf",
    [getKey(timekey)] :23
    
}
let ss = {
    name :"zf",
    age:33
}
console.log(a)
let [aa:name,bb:age] = ss
console.log(aa,bb)
console 命令行工具 X clear

                    
>
console