更新 导航页切换分类.js
This commit is contained in:
parent
95b2bb13a5
commit
f33f2b7e39
@ -13,7 +13,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
setTimeout(init, 1500);
|
setTimeout(init, 1000);
|
||||||
function init() {
|
function init() {
|
||||||
const search_bar = document.querySelector("#search-bar");
|
const search_bar = document.querySelector("#search-bar");
|
||||||
if (search_bar) {
|
if (search_bar) {
|
||||||
@ -36,7 +36,6 @@
|
|||||||
const targetSpan = spans[currentIndex];
|
const targetSpan = spans[currentIndex];
|
||||||
if (targetSpan) {
|
if (targetSpan) {
|
||||||
targetSpan.click();
|
targetSpan.click();
|
||||||
console.log(`已点击第 ${currentIndex} 个 span`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user