📌  相关文章
📜  document.addEventListener('DOMContentLoaded', function() { var elems = document.querySelectorAll('.slider'); var instances = M.Slider.init(elems, options); }); - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:24.095000             🧑  作者: Mango

代码示例1
document.addEventListener('DOMContentLoaded', function() {
    var elems = document.querySelectorAll('.slider');
    var instances = M.Slider.init(elems, options);
  });

  // Or with jQuery

  $(document).ready(function(){
    $('.slider').slider();
  });