From 8bc5a919a9012ae71564f2c0dbcd5ad10c69a644 Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Fri, 12 Jan 2024 17:37:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=A0=E8=BD=BD=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/peko/home/index.html | 2 +- view/peko/home/js/index.js | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) 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