首尔的秋叶-美食-发现

首尔的红叶美食

在迷人的昌庆宫(Changgyeonggung Palace)附近品尝美味佳肴的同时,尽情欣赏红叶美景。从香脆的炸猪排到

阅读更多 "
zh_CNChinese
const carouselSlide = document.querySelector('.carousel-slide'); const items = document.querySelectorAll('.carousel-item'); const prevButton = document.querySelector('.carousel-prev'); const nextButton = document.querySelector('.carousel-next'); 让 index = 0; function showItem(index) { carouselSlide.style.transform = `translateX(${-index * 100}%)`; } nextButton.addEventListener('click', () => { index = (index + 1) % items.length; showItem(index); }); prevButton.addEventListener('click', () => { index = (index - 1 + items.length) % items.length; 显示项目(索引); });