Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
单击按钮后,您可以使用文档show中给出的方法
show
$('#myModal').modal('show')
演示:Plunker
您可以使用切换隐藏显示,不需要使用显示和隐藏
$("#myModalID").modal('toggle'); $('#myModalID').modal('show'); $('#myModalID').modal('hide');