<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>删除属性</title>
</head>
<body>
    <script type="text/javascript">
        let node = {
            type: "Identifier",
            name: "foo",
            age: 18,
            sex: 'man'
        };

        let { type, age, ...a } = node;
        console.log(a);
    </script>
</body>
</html>

 

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2023-01-30
  • 2021-12-27
  • 2021-09-26
  • 2021-11-27
相关资源
相似解决方案