假设我想创建一个对象,如下所示:
let blue = 2;
let red = 3;
let green = 4;
const test = {
blue: blue,
red: red,
green: green,
}
有没有办法在不经历和设置每个变量的情况下声明?const testblue: blue
LEATH
明月笑刀无情
慕勒3428872
相关分类