Javascript — 第07天
IPFS
![](https://assets.matters.news/embed/44ad77cb-4b5a-4611-8db9-b8868a6cd811.jpeg)
今日主題 📕
- ES7
- ES8
- ES10(ES2019)
- - flat()
🎃到github找source code | Here
ES7
![](https://assets.matters.news/embed/b55d0c4c-7aea-4522-acd2-9bd8d215cf2e.jpeg)
ES8
- 將空白插入開頭 padStart
- 將空白插入末端 padEnd
![](https://assets.matters.news/embed/3e5b1c6d-7c90-44d8-8d71-3d58236f1917.jpeg)
- keys
- values
- entries
![](https://assets.matters.news/embed/f45e15e0-ee24-4596-881d-fc607225c919.jpeg)
![](https://assets.matters.news/embed/2d292a68-689d-4142-a7d2-31ba1cb80fa9.jpeg)
替代Replacement
![](https://assets.matters.news/embed/b0c514f6-3748-49cd-ad7a-92f0e73fbde2.jpeg)
ES10
- 平面化flat()
- 如何flat 巢狀陣列(nested array)
![](https://assets.matters.news/embed/6107a331-5524-456d-bd85-c7e8607bdc98.jpeg)
![](https://assets.matters.news/embed/d69c1524-d4d8-4604-8fd7-e85e0e6e069e.jpeg)
![](https://assets.matters.news/embed/53115ee8-b95a-471d-9bda-ae54c50217f4.jpeg)
![](https://assets.matters.news/embed/a822fe50-95f2-46be-ba1c-fd72f796de98.jpeg)
![](https://assets.matters.news/embed/2e73bf51-4158-470d-8775-1f209b7ca751.jpeg)
- 將開頭去空白 trimStart()
- 將末端去空白 trimEnd()
![](https://assets.matters.news/embed/12c2e965-403a-4d48-ac60-045f07df9173.jpeg)
- fromEntries
- entries
![](https://assets.matters.news/embed/879a5045-96ef-4469-b56e-e27b1d871796.jpeg)
- 抓錯好幫手 -- try & catch
![](https://assets.matters.news/embed/8e10de88-c8ef-4505-b13d-2f66ccb2fece.jpeg)
![](https://assets.matters.news/embed/492ee900-26e3-47e7-8e27-57614d534f6d.jpeg)
進階迴圈(Advanced Loops)
- 基礎迴圈(basic loops)
![](https://assets.matters.news/embed/06493634-fbd0-4d0d-b6fc-bcc836f0ef8b.jpeg)
喜欢我的作品吗?别忘了给予支持与赞赏,让我知道在创作的路上有你陪伴,一起延续这份热忱!
![](https://imagedelivery.net/kDRCweMmqLnTPNlbum-pYA/prod/avatar/d817bb18-ddf9-48cf-8377-7ad47ca8c94a.jpeg/public)
- 来自作者
- 相关推荐