当前位置:网站首页>Map set
Map set
2022-07-28 00:42:00 【sl105105】



let map = new Map();
map.set('JacksonWang','123');
map.set('LEO','456');
map.set('Z-','789');
let map = new Map();
map.set('JacksonWang','123');
map.set('LEO','456');
map.set('Z-','789');
for(const [key,value] of map.entries()){
console.log(`${key}:${value}`);
}

let map1 = new Map([
[1,'One'],
[2,'Two'],
[3,'Three']
])
console.log([...map1.keys()]);
console.log(...map1.entries())
console.log([...map1.entries()]);边栏推荐
- mysql数据库的基本操作(三)-——基于字段
- 半导体测试设备市场现状:国产化率仍不足10%!
- 一文读懂CMake
- Firefox 103, the Firefox browser, has been released to improve performance under high refresh rate displays
- Those "experiences and traps" in the data center
- 强强协同,共拓发展!英特尔与太一物联举办 AI 计算盒聚合服务研讨会
- Redis-三大特殊数据类型的学习和理解
- The R language uses the hexsticker package to convert the visualized results of ggplot2 package into hexagonal diagrams (hexagonal stickers, hexagonal stickers, ggplot2 plot to hex stickers)
- Arm releases the new a78/g78/n78 kernel! There is also a cortex-x Series CPU that supports customization
- Matlab | those matlab tips you have to know (3)
猜你喜欢

Camera and lidar calibration: gazebo simulation livox_ camera_ lidar_ Calibration ---- external parameter calibration calculation and result verification

LeetCode 415. 字符串相加 和 43. 字符串相乘

OpenVINO整合TensorFlow实现推理加速

数据分析:拆解方法(详情整理)

In July, a software testing engineer came to the company. He looked like a hairy boy. He didn't expect to be the new generation of roll King

Ali Er Mian: why do we need to separate databases and tables?

一文读懂CMake

这种动态规划你见过吗——状态机动态规划之股票问题(中)

Rational and perceptual activities and required skills in programmers' work

MATLAB | 那些你不得不知道的MATLAB小技巧(一)
随机推荐
[BRE]软件构建发布自动化
网络设备硬核技术内幕 防火墙与安全网关篇 (十二) 零接触办公的奥秘 下
Yangchuanhui, CTO of oceanbase: some HTAP databases are not real htaps
Build Release Blogs
Is there a general formula for tens of millions of players? B station is underestimated as a hot money opportunity!
大众中国豪掷80亿,成国轩高科第一大股东
leetcode 452. Minimum Number of Arrows to Burst Balloons 用最少数量的箭引爆气球(中等)
Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)
Overview of construction site selection of Yongzhou analytical laboratory
Remote monitoring of pump station
渲染问题
蓝桥杯单片机第十一届国赛程序设计试题
JVM memory model
What foundation does Yolo need? How to learn Yolo?
MATLAB | MATLAB地形生成:矩形迭代法 · 傅里叶逆变换法 · 分形柏林噪声法
The influence of head zeroing and tail zeroing on FFT output
BuildForge 资料
Application scenario Display of metauniverse
Smart convenience store takes you to unlock the future technology shopping experience
数据可视化-《白蛇2:青蛇劫起》(3)