云梦网 logo
游客00321
空间 帖子 签到
头像
function updateMessage() { const messageElement = document.getElementById('message'); // 从本地存储获取消息数(实际应从服务器获取) const x = parseInt(localStorage.getItem('messageCount')) || 0; let messageContent = ''; // 根据屏幕宽度调整显示 if (window.innerWidth <= 768) { messageElement.innerHTML = messageContent.replace('x条', `${x}条`); } else { messageElement.innerHTML = messageContent.replace('x条', `你有${x}条新消息!`); } const finalContent = messageElement.textContent.trim(); const hasTiao = finalContent.includes('条'); // 隐藏逻辑:内容为空 或 有"条"字但消息数为0 if (finalContent === '' || (hasTiao && x === 0)) { messageElement.style.display = 'none'; console.log("隐藏消息提示,消息数:", x); } else { messageElement.style.display = 'block'; console.log("显示消息提示,内容:", finalContent); } } // 页面加载时执行 updateMessage(); window.addEventListener('resize', updateMessage);
首页新闻资讯经典语句

Incisive Life Philosophy Sentences

2021-07-30 23:39:00  管理员(更多)  333  140阅

1. In life, it doesnt matter to lose, Im afraid to squander hastily. Life is limited, everything is gained, and eventually it will be lost. As long as you cherish it with your heart, you dont have to worry about losing too much. The flowers

1
good 0
  关于爱情的句子
  16 most incisive life sentences

文章随机推荐

刷新 换一批
男人性衰老?5件事能阻止 01-02
肛交的正确插入指南 01-02
女性深处G点激发的高潮快感 01-02
让口交成为性活动的压轴戏 01-02
男人多吃这物肾越来越强 01-02
羞!性交时女人私处的“性反应” 01-02
经期调养7原则 缓解不适感 01-02
适度性生活的健康效应 01-02

猜你喜欢

刷新 换一批
红舞鞋 08-06
血鬼 08-06
榆树下的怨灵 08-06
灶君 08-06
吃人电梯 08-06
  • 男人阴茎更坚硬强壮的方法

    两性健康 13626

    炙热的画笔
在线状态 当前在线活动人数: 5204

游客95747于10分钟前浏览帖子:我心素简,一缕阳光
游客71547于23分钟前浏览:男人那活儿的十五个小秘密
游客62011于14分钟前浏览:猛男吐槽 子宫是怎样“进入”的
游客85066于21分钟前浏览:桃花朵朵开
游客31033于半小时前浏览:体重每增加5Kg“弟弟”缩短1cm?
游客00958于半小时前浏览大气的画板空间
游客72717于半小时前浏览:专家解说:避孕药的是非之争
游客24393于半小时前浏览:一串风趣生活冷笑话

返回上级 返回首页
首页图标首页
小说图标恐怖小说
VIP抽奖
开通VIP