标签: javascript ecmascript-6 spread-syntax
示例:
console.log(file) // File object with properties const f = {...file} console.log(f) // empty Object file.id = 'abcdef' const ff = {...file} console.log(ff) // Object with only property {id: 'abcdef'}
任何人都可以向我解释或发送参考链接