跳至内容
主题
餐厅
菜单
主题
餐厅
搜索
搜索
黑白厨师》中隐藏的天才厨师餐厅:Pono Buono
曾在《黑白厨师》中饰演 "隐藏的天才",给人留下深刻印象的厨师金泰成!凭借扎实的
阅读更多 "
杰西
11 月 1, 2024
Chinese
English
Korean
Japanese
Spanish
Chinese
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; 显示项目(索引); });