<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>退出</title>
    <style>
        .main{
            height: 300px;
            text-align: center;
        }
        p{
            margin-top: 130px;
            font-size: 30px;
            line-height: 30px;
            text-align: center;
        }
    </style>
</head>

<body>
    <div class="main">
           <p>退出成功</p>
    </div>
</body>

<script>
    window.onload=function () {
        localStorage.clear();
    }
</script>
</html>