📜  物化模态触发器 - 任何代码示例

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

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

  // Or with jQuery

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