更新时间:2023-12-03 13:54:52
您可以使用jQuery打开模式:
You can use the jQuery to open the modal:
$(document).ready(function(){
$('button[data-target="myModalZ"]').click(function(){
$('#myModalZ').modal('show');
});
});
已编辑
$(document).ready(function(){
$('button[data-target="myModalZ"]').click(function(){
if($('#myModalZ').length){
$('#myModalZ').modal('show');
} else {
alert('Your message');
}
});
});