|
@@ -36,22 +36,23 @@
|
|
|
<div class="index-load" id="index-load" style="display:block;position: absolute;bottom: 10px;right: 10px;"></div>
|
|
|
</div>
|
|
|
<script>
|
|
|
-
|
|
|
- var indexSetInval;
|
|
|
+ var indexSetInval;
|
|
|
var indexStartNum = 1;
|
|
|
- indexSetInval = setInterval(function() {
|
|
|
+ indexSetInval = setInterval(function() {
|
|
|
indexStartNum++;
|
|
|
var str = '加载中' + ((indexStartNum % 2 == 0) ? '…' : '……');
|
|
|
document.getElementById('index-load').innerHTML = str;
|
|
|
- }, 1000)
|
|
|
+ }, 1000)
|
|
|
</script>
|
|
|
|
|
|
<div id="app"></div>
|
|
|
|
|
|
<script>
|
|
|
- window.onload = function() {
|
|
|
- clearInterval(indexSetInval);
|
|
|
- removeLoading()
|
|
|
+ document.onreadystatechange = function() {
|
|
|
+ if (document.readyState == "complete") {
|
|
|
+ clearInterval(indexSetInval);
|
|
|
+ removeLoading()
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
function removeLoading() {
|
|
@@ -89,7 +90,7 @@
|
|
|
}
|
|
|
})();
|
|
|
</script>
|
|
|
-
|
|
|
+
|
|
|
<script src="https://hm.baidu.com/hm.js?70f1b4bfc1d017e50a488b34b9dcc02c"></script>
|
|
|
</body>
|
|
|
</html>
|