标签:object res inpu read color code input 获取 const
//将多个对象合并到一个对象里 const input = { a: 1, b: 2 } const test = { d: 5 } const output = { ...input, ...test, c: 3 } //拆解对象,获取想要的属性 const input = { a: 1, b: 2, c: 3, d: 4, e: 5 } const { a, b, ...rest } = input console.log(a,b,rest)
标签:object res inpu read color code input 获取 const
原文地址:https://www.cnblogs.com/qjb2404/p/12231668.html