摘要: 三层数组,最后一曾数组,进行模糊匹配,匹配上的文字,字体颜色别的颜色 高亮显示匹配文字, //arr:处理的数组数据 hightlightItem(arr){ let _this = this; const query = this.searchValue.trim().toLowerCase(); 阅读全文
posted @ 2025-11-21 11:13 木樨园 阅读(3) 评论(0) 推荐(0)
摘要: <div id="myId"></div> <script> let ids = "#myId"; if(ids){ const decoded = decodeURIComponent(ids); const ele = document.getElementById(decoded); if(e 阅读全文
posted @ 2025-11-21 10:55 木樨园 阅读(7) 评论(0) 推荐(0)
摘要: const iframe = document.getElementById('iframeId'); iframe.onload =function(){ try{ const doc = iframe.contentDocument||iframe.contentWindow.document; 阅读全文
posted @ 2025-11-21 10:41 木樨园 阅读(5) 评论(0) 推荐(0)