老师检查下

来源:3-10 编程练习

母鸡阿

2021-03-05 17:31:33

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title>Document</title>

</head>


<body>

<script type="text/javascript">

//补充代码

    const {

        loc:{

        start : [x],

        end : {y}

    }} = node;

    console.log(x,y);

    </script>

</body>

</html>


写回答

1回答

好帮手慕张

2021-03-05

同学你好,解构赋值是等号右边是整个node对象,左边是解构,要一一对应,修改如下图:

http://img.mukewang.com/climg/6042119309f6f42a05470512.jpg

​祝学习愉快!

0

0 学习 · 15276 问题

查看课程

相似问题