原生js实现复杂Tab栏切换(非常经典)

<!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>
<style>
* {
margin: 0;
padding: 0;
}
ul,
ol {
list-style-type: none;
}
.wrap {
position: relative;
width: 700px;
height: 400px;
border: 1px solid #000;
margin: 0 auto;
}
.left_btn {
float: left;
width: 200px;
height: 700px;
}
.left_btn ul li {
box-sizing: border-box;
height: 100px;
border: 2px solid pink;
text-align: center;
line-height: 100px;
font-size: 30px;
background-color: red;
cursor: pointer;
}
.right_content {
display: none;
position: absolute;
top: 0;
right: 0;
float: left;
width: 500px;
height: 400px;
background-color: rgb(7, 142, 196);
}
.content_ {
position: relative;
height: 350px;
background-color: pink;
}
.top_content {
display: none;
position: absolute;
top: 0;
right: 0;
width: 500px;
height: 350px;
background-color: rgb(100, 7, 221);
text-align: center;
line-height