1、js中操作$('#myModal5').map(function() {//用id选择器选中要关闭的模态框 $(this).modal('hide'); //关闭 });
2、用button在模态框关闭
<button type="button" class="close" data-dismiss="modal">
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3