<!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>
|