dataset使用方法
Uncaught TypeError: Cannot read property ‘style’ of null at HTMLLIElement.lis..onclick (3.切换的导航栏.html:116)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
text-decoration: none;
list-style: none;
}
.box {
width: 500px;
height: 600px;
margin: 50px auto;
background-color: #ccc;
border: 1px solid #222;
}
.title {
width: