ES6的解构赋值中使用别名

const obj = { number: 100 }
const { number } = obj
//使用别名
const { number: otherNumber } = obj
console.log(otherNumber)   // 100

原文地址:https://www.cnblogs.com/qianxiaoniantianxin/p/14416277.html