<!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 = ["a","b","c"];
    // console.log(a.indexOf("b"));
    // console.log(a.slice(1));

    let a = ["a","b","c"];

    a.splice(1,1,"d","e");
    // 第一个参数是从哪开始切
    // 第二个参数是切几个
    // 后边的参数是添加的东西

    console.log(a);


</script>
</body>
</html>