当前位置:网站首页>Es6连续解构赋值+重命名
Es6连续解构赋值+重命名
2022-08-09 08:45:00 【鱼是一只鱼啊】
let obj={
a:{
b:'土豆'}}
const{
a:{
b:name}}=obj
console.log(name) //这个name即为重命名以后的值
边栏推荐
- monitor textbox input
- Dark Horse 2022 latest redis course notes and knowledge points (for interview)
- nyoj306 走迷宫(搜索+二分)
- The MySQL database
- Some of the topics in VNCTF2021 are reproduced
- Boot process and service control
- Venture DAO 行业研报:宏观和经典案例分析、模式总结、未来建议
- 【MySQL】mysql:解决[Err] 1093 - You can‘t specify target table ‘表名‘ for update in FROM clause问题
- Programming a washing machine: garbled characters after string output
- Notes on OpenHarmony Open Source Meeting (Nanjing Station)
猜你喜欢
OpenHarmony开源见面会(南京站)相关笔记
第五届蓝帽杯初赛 misc 赛后复现
Account and Permission Management
EMQ X 消息服务器学习记录——为后面的毕设做准备
Tencent cloud server is modified to root login to install pagoda panel
QT设置exe可执行文件的图标
Go语言技巧之正确高效使用slice(听课笔记总结--简单易懂)
System Security and Application
The 5th Blue Cap Cup preliminary misc reappears after the game
leetcode 37. 解数独 (困难)
随机推荐
OSI网络模型
Notes on OpenHarmony Open Source Meeting (Nanjing Station)
EMQ X message server learning record - prepare for the subsequent completion
Conversion between number systems
Literature retrieval operation code
BUUCTF MISC Writing Notes (1)
Getting started with ctfshow-web Part of the file upload part solution
100句话,是否会触动你?
LAN技术-6MSTP
探索APP性能优化之稳定性优化(解决方案)
The working principle of switch
Non-decreasing Array
[漏洞复现]CVE-2018-7490(路径遍历)
get一个小技巧,教你如何在typora写文章上传图片到博客上
Dark Horse 2022 latest redis course notes and knowledge points (for interview)
requests之模拟登录学习
引导过程与服务控制
Shell programming loop statement and function
Process synchronization and mutual exclusion problem
UE4 RTS frame selection function implementation