📜  scrollspy bootstrap 5 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:01.798000             🧑  作者: Mango

代码示例2
var firstScrollSpyEl = document.querySelector('[data-bs-spy="scroll"]')
firstScrollSpyEl.addEventListener('activate.bs.scrollspy', function () {
  // do something...
})