加载中...
标签 - Css
2022
flex布局横向滚动
flex布局横向滚动
<_WEBSITE_ID = "ae538b7c-7693-4185-b6fa-fc0dba9f67c5"; (function () { d = document; s = d.createElement("script"); s.src = "https://client.crisp.chat/l.js"; s.async = 1; d.getElementsByTagName("head")[0].appendChild(s); })(); $crisp.push(["safe", true]) if (true) { $crisp.push(["do", "chat:hide"]) $crisp.push(["on", "chat:closed", function() { $crisp.push(["do", "chat:hide"]) }]) var chatBtnFn = () => { var chatBtn = document.getElementById("chat_btn") chatBtn.addEventListener("click", function(){ $crisp.push(["do", "chat:show"]) $crisp.push(["do", "chat:open"]) }); } chatBtnFn() } else { if (false) { function chatBtnHide () { $crisp.push(["do", "chat:hide"]) } function chatBtnShow () { $crisp.push(["do", "chat:show"]) } } }
= '' if (array.length) { for (let i = 0; i < array.length; i++) { result += '
' if (true) { const name = 'src' result += `${array[i].nick}` } result += `
${array[i].content}
${array[i].nick} /
` } } else { result += '没有评论' } let $dom = document.querySelector('#card-newest-comments .aside-list') $dom.innerHTML= result window.lazyLoadInstance && window.lazyLoadInstance.update() window.pjax && window.pjax.refresh($dom) } const newestCommentInit = () => { if (document.querySelector('#card-newest-comments .aside-list')) { const data = saveToLocal.get('twikoo-newest-comments') if (data) { generateHtml(JSON.parse(data)) } else { getComment() } } } newestCommentInit() document.addEventListener('pjax:complete', newestCommentInit) })