新增加载时间监听
This commit is contained in:
@@ -100,7 +100,7 @@
|
|||||||
<script src="http://static.lkme.cc/linkedme.min.js"></script>
|
<script src="http://static.lkme.cc/linkedme.min.js"></script>
|
||||||
<script src="./js/utf.js"></script>
|
<script src="./js/utf.js"></script>
|
||||||
<script src="./js/swiper.min.js"></script>
|
<script src="./js/swiper.min.js"></script>
|
||||||
<script src="./js/index.js?v=2.2"></script>
|
<script src="./js/index.js?v=2.3"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@@ -24,7 +24,6 @@ const channelDict = {
|
|||||||
// 'baomihua01': 'https://image.lecheng163.com/accompany_release_v_213_1_baomihua01_sign.apk'
|
// 'baomihua01': 'https://image.lecheng163.com/accompany_release_v_213_1_baomihua01_sign.apk'
|
||||||
}
|
}
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
//判断url参数是否是与渠道包名一致
|
//判断url参数是否是与渠道包名一致
|
||||||
let androidUrl = null;
|
let androidUrl = null;
|
||||||
channelDict.hasOwnProperty(channelData) ? androidUrl = channelDict[channelData] : androidUrl = 'https://play.google.com/store/apps/details?id=com.vele.pekolive';
|
channelDict.hasOwnProperty(channelData) ? androidUrl = channelDict[channelData] : androidUrl = 'https://play.google.com/store/apps/details?id=com.vele.pekolive';
|
||||||
@@ -118,4 +117,13 @@ $(function () {
|
|||||||
$('.apk').click(function () {
|
$('.apk').click(function () {
|
||||||
window.location.href = 'https://img.pekolive.com/piko_official.apk'
|
window.location.href = 'https://img.pekolive.com/piko_official.apk'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
// 定义变量存储开始时间
|
||||||
|
var startTime = new Date().getTime();
|
||||||
|
|
||||||
|
// 添加 window.onload 事件处理函数
|
||||||
|
window.addEventListener('load', function() {
|
||||||
|
// 计算结束时间并输出耗时(单位为毫秒)
|
||||||
|
var endTime = new Date().getTime();
|
||||||
|
console.log("页面加载完成所需时间:" + (endTime - startTime) + "ms");
|
||||||
|
});
|
Reference in New Issue
Block a user