diff --git a/view/peko/home/index.html b/view/peko/home/index.html index 0bca689..4022663 100644 --- a/view/peko/home/index.html +++ b/view/peko/home/index.html @@ -100,7 +100,7 @@ - + \ No newline at end of file diff --git a/view/peko/home/js/index.js b/view/peko/home/js/index.js index cc5800f..06cbebb 100644 --- a/view/peko/home/js/index.js +++ b/view/peko/home/js/index.js @@ -24,7 +24,6 @@ const channelDict = { // 'baomihua01': 'https://image.lecheng163.com/accompany_release_v_213_1_baomihua01_sign.apk' } $(function () { - //判断url参数是否是与渠道包名一致 let androidUrl = null; 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 () { window.location.href = 'https://img.pekolive.com/piko_official.apk' }) -}) \ No newline at end of file +}) +// 定义变量存储开始时间 +var startTime = new Date().getTime(); + +// 添加 window.onload 事件处理函数 +window.addEventListener('load', function() { + // 计算结束时间并输出耗时(单位为毫秒) + var endTime = new Date().getTime(); + console.log("页面加载完成所需时间:" + (endTime - startTime) + "ms"); +}); \ No newline at end of file