标签 - PHP
2021
安卓课设:翻译君APP
安卓课设:翻译君APP
aline-newest-comments', JSON.stringify(walineArray), 10/(60*24)) generateHtml(walineArray) }).catch(e => { const $dom = document.querySelector('#card-newest-comments .aside-list') $dom.innerHTML= "无法获取评论,请确认相关配置是否正确" }) } if (typeof Waline === 'function') loadWaline() else getScript('https://cdn.jsdelivr.net/npm/@waline/client/dist/waline.js').then(loadWaline) } const newestCommentInit = () => { if (document.querySelector('#card-newest-comments .aside-list')) { const data = saveToLocal.get('waline-newest-comments') if (data) { generateHtml(JSON.parse(data)) } else { getComment() } } } newestCommentInit() document.addEventListener('pjax:complete', newestCommentInit) })