连续解构赋值并且重新命名!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script>
let obj = {
a:{
b:{c:1}
}
}
const {a:{b:{c:data}}} = obj; // 连续解构复制并且重命名
console.log(data);
</script>
</body>
</html>