<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> body { font-family: "Microsoft YaHei", serif; } body, dl, dd, p, h1, h2, h3, h4, h5, h6 { margin: 0; } ol, ul, li { margin: 0; padding: 0; list-style: none; } img { border: none } </style> </head> <body> <script> // let [a,[b,c],d] = [1,[2,3],4]; let [a,b,{x,y}] = [1,2,{x:3,y:4}] // 严格来说只要等号右边的数据有Iterator遍历器接口都可以用来数组形式的解构 // 常见的Array String NodeList arguments和新增的数据解构Map Set都是有这个接口的 </script> </body> </html>