splice(index,howmany)
index 从哪个下标开始
howmany 删除多少个
<!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>
<script>
// splice(index,howmany)
// index 从哪个下标开始
// howmany 删除多少个
var arr = [1,2,3,4,5]; //[1,2,3,5];
arr.splice(3,1);
console.log(arr);
</script>
</body>
</html>