ate.UTC(2019,08,01,10,13,14); // 这里设置建站时间 setInterval(function() { var today = new Date(); var todayYear = today.getFullYear(); var todayMonth = today.getMonth()+1; var todayDate = today.getDate(); var todayHour = today.getHours(); var todayMinute = today.getMinutes(); var todaySecond = today.getSeconds(); var now = Date.UTC(todayYear,todayMonth,todayDate,todayHour,todayMinute,todaySecond); var diff = now - birthDay; var diffYears = Math.floor(diff/years); var diffDays = Math.floor((diff/days)-diffYears*365); var diffHours = Math.floor((diff-(diffYears*365+diffDays)*days)/hours); var diffMinutes = Math.floor((diff-(diffYears*365+diffDays)*days-diffHours*hours)/minutes); var diffSeconds = Math.floor((diff-(diffYears*365+diffDays)*days-diffHours*hours-diffMinutes*minutes)/seconds); document.getElementById('showDays').innerHTML=""+diffYears+"年"+diffDays+"天"+diffHours+"小时"+diffMinutes+"分钟"+diffSeconds+"秒"; }, 1000); ; NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => { var GUEST = ['nick', 'mail', 'link']; var guest = 'nick,mail'; guest = guest.split(',').filter(item => { return GUEST.includes(item); }); new Valine({ el: '#comments', verify: true, notify: true, appId: 'TP3Cd0A5Mo39RIFwSq3B7ulU-MdYXbMMI', appKey: 'Vxha2LU2H4mUgiNgAncQoyT0', placeholder: "友善发言, 关爱你我身心健康 (悄悄告诉你,匿名也可以发言哦)", avatar: 'mm', meta: guest, pageSize: '10' || 10, visitor: false, lang: 'zh-cn' || 'zh-cn', path: location.pathname, recordIP: false, serverURLs: '' }); }, window.Valine);