当前位置:网站首页>es6--解构赋值
es6--解构赋值
2022-07-25 21:28:00 【alice--小文子】
1 满足要求:
(1)左右一致
(2)右边是个东西(例如数据或者json)
2 使用详细代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
let {a,b,c} = {a:11,b:22,c:33};
console.log(a,b,c);
let [d,e,f] = [444,555,666]
console.log(d,e,f);
</script>
</body>
</html>边栏推荐
- Product principles of non-financial decentralized application
- 3阶有向完全图的所有非同构的子图(不同钩子图个数)
- An interview question about recover in golang
- strcpy()
- cuda_ error_ out_ of_ Memory (out of memory)
- ES6 --- four powerful operators (?,? =,?.,?:)
- C common set
- resize函数的作用「建议收藏」
- The role of the resize function is "suggestions collection"
- Please give an example of how to optimize MySQL index (sqlserver index optimization)
猜你喜欢

Trusted and controllable way of Tencent cloud database

浅谈web性能优化(一)

基于腾讯地图实现精准定位,实现微信小程序考勤打卡功能

黑盒(功能)测试基本方法

Basic method of black box (function) test

Vivo official website app full model UI adaptation scheme

My heart's broken! After being cheated by 30000, a 16-year-old girl was unconvinced and cheated by 50000

C#Socket

SSH private key realizes login to remote target server

DDD的Go实战
随机推荐
cuda_error_out_of_memory(out of memory怎么办)
The international summit osdi included Taobao system papers for the first time, and end cloud collaborative intelligence was recommended by the keynote speech of the conference
大厂面试官:千万级数据量的表,如何进行快速查询?
An interview question about concurrent reading and writing of map in golang
C#程序设计的6大原则
All non isomorphic subgraphs of a directed complete graph of order 3 (number of different hook graphs)
yuv422转rgb(422sp转420p)
CNN structural design skills: taking into account speed accuracy and engineering implementation
cv图像翻转,EmguCV图像旋转「建议收藏」
Research: more than 70% of doctors are still prescribing unsafe antibiotic drugs
Achieve accurate positioning based on Tencent map, and realize the attendance punch function of wechat applet
How to solve the problem of high concurrency and large traffic with PHP
[online tutorial] iptables official tutorial -- learning notes 2
MPI learning notes (II): two implementation methods of matrix multiplication
如何自动生成短链?如何在线批量生成带UTM参数的链接?
How to choose sentinel vs. hystrix current limiting?
Canvas 填充渐变
kali修改更新源(无法安全的用该源更新)
Opencv learning Fourier transform experience and line direction Fourier transform code
Vivo official website app full model UI adaptation scheme