请老师检查

来源:2-13 编程练习

慕圣7292417

2021-09-17 22:36:49

<!DOCTYPE html>

<html lang="en">


<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

</head>


<body>

    <ul>

        <li>1</li>

        <li>2</li>

        <li>3</li>

    </ul>

    <script>

        // Nodelist对象

        const list = document.querySelectorAll('li')

        // Map对象

        const map = new Map([

            ['a'1],

            ['b'2]

        ])

        // 在此补充代码

        const [abc] = [...list];

        console.log(abc);


        const [de] = [...map];

        console.log(de);

        const fn = function () {

            // arguments对象

            // 在此补充代码

            const [ab] = [...arguments];


            console.log(ab);

        }

        fn(13)

    </script>

</body>


</html>


写回答

1回答

好帮手慕然然

2021-09-18

同学你好,代码实现很正确,继续加油,祝学习愉快!

0

0 学习 · 17877 问题

查看课程

相似问题