你好我正在使用Materialise js并且它的模态没有打开,下面是我的代码。请让我知道它有什么问题?
<!-- Modal Structure -->
<div id="modal1" class="modal bottom-sheet">
<div class="modal-content">
<h4>
Modal Header
</h4>
<p>
A bunch of text
</p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Agree</a>
</div>
</div>
<a class="waves-effect waves-light btn" href="#modal1">Modal</a>
答案 0 :(得分:1)
在Javascript中添加:$('#modal1')。modal(); 之前:$('#modal1')。modal('open');