mac
2024-06-25 2bc156ec08369884b44961cd446201d35a66fff0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="HandheldFriendly" content="true"/>
    <meta name="MobileOptimized" content="320"/>
    <title>Error</title>
    <script type="text/javascript">
        // H5 plus事件处理
        window.onload = function(){
            console.log("进入onload方法")
            //界面异常后,等1秒后尝试重新加载
            setTimeout(function(){
            console.log("执行settimeout方法")
            plus.runtime.restart()
                    },1000);
            };
    </script>
    <style>
        *{
            -webkit-user-select: none;
        }
        html,body{
            margin: 0px;
            padding: 0px;
            width: 100%;
            height: 100%;
            text-align: center;
            word-break: break-all;
            -webkit-touch-callout:none;
            -webkit-tap-highlight-color:rgba(0,0,0,0);
        }
        .button{
            width: 50%;
            font-size: 18px;
            font-weight: normal;
            text-decoration: none;
            text-align: center;
            padding: .5em 0em;
            margin: .5em auto;
            color: #333333;
            background-color: #EEEEEE;
            border: 1px solid #CCCCCC;
            -webkit-border-radius: 5px;
            border-radius: 5px;
        }
        .button:active{
            background-color: #CCCCCC;
        }
 
    </style>
</head>
<body>
<div style="height:200px"></div>
<p style="font-size:18px;font-weight:bolder;">Loading..........</p>
</body>
</html>