const btnLoginPage = document.querySelector('.btn-login'); const btnUserProfile = document.querySelector('.btn-userProfile'); const btnLogout = document.querySelector('.btn-logout'); function getCookie(name) { const value = `; ${document.cookie}`; const parts = value.split(`; ${name}=`); if (parts.length === 2) return parts.pop().split(';').shift(); } let userBasics = JSON.parse(localStorage.getItem('user_profile')) || []; function checkLocal() { if(userBasics.length == 0){ return }; $('.userName').html(`
User Profile
//${userInfo.user_info.userName}
//${userInfo.user_info.email}
//已使用
//${userInfo.user_info.total_sec}秒
//未使用
//${userInfo.user_info.left_sec}秒
//User Profile
${userInfo.user_info.userName}
${userInfo.user_info.email}
已使用
${userInfo.user_info.total_sec}秒
未使用
${userInfo.user_info.left_sec}秒