<!doctype html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>提示</title>
    <script src="/static/plugins/jquery/jquery-2.1.4.min.js"></script>
    <script src="/static/plugins/layer/layer.js"></script>
</head>
<body>
<script type="text/javascript">
    var url = "javascript:history.back(-1);",wait = parseInt("3");
    $(function(){
        layer.open({
            anim: 0, //默认动画风格
            title: "系统提示",
            content: "非法请求url",
            icon: parseInt("0")===1?1:2,
            yes:function(index,layerO){
                location.href = url;
                layer.close(index);
            }
        });
        var interval = setInterval(function(){
            --wait;
            if(wait <= 0) {
                location.href = url;
                clearInterval(interval);
            }
        }, 1000);
    });
</script>
</body>
</html>