摘要:
工具函数封装 localStorage 存储 // 数据存储到本地缓存 const localSet = (key, value, day) => { let d = new Date(); let time = 0; day = (typeof (day) 'undefined' || !day) 阅读全文
摘要:
DOM 检查一个元素是否被聚焦 const hasFocus = (ele) => ele document.activeElement 获取一个元素的所有兄弟元素 const siblings = (ele) => .slice.call(ele.parentNode.children).filt 阅读全文