<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>error</title>
    <style>
        body{
            background-color:#444;
            font-size:14px;
        }
        h3{
            font-size:60px;
            color:#eee;
            text-align:center;
            padding-top:30px;
            font-weight:normal;
        }
    </style>
</head>

<body>
<h3><span id="err">404，您请求的文件不存在!</span></h3>
<script type="text/javascript">
    var str = window.location.href;
    var index = str .lastIndexOf("#");
    console.log(index);
    if(index>-1){
        str  = str .substring(index + 1, str .length);
        var err=document.getElementById("err");
        err.innerHTML=str;

    }

    console.log(str);

</script>

</body></html>