📅  最后修改于: 2022-03-11 14:56:24.095000             🧑  作者: Mango
document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.slider');
var instances = M.Slider.init(elems, options);
});
// Or with jQuery
$(document).ready(function(){
$('.slider').slider();
});