Javascript 引导模式隐藏在Laravel 7上不起作用

Javascript 引导模式隐藏在Laravel 7上不起作用,javascript,jquery,laravel,twitter-bootstrap,modal-dialog,Javascript,Jquery,Laravel,Twitter Bootstrap,Modal Dialog,成功上传数据后,当我单击“确定”时,我尝试关闭自动资金,但当我单击“确定”时,资金不会关闭/隐藏 这是我的刀片 complete:function(res){ console.log(res); if(res.responseJSON !== undefined){ if(res.responseJSON.status === true){ ta

成功上传数据后,当我单击“确定”时,我尝试关闭自动资金,但当我单击“确定”时,资金不会关闭/隐藏

这是我的刀片

complete:function(res){
                console.log(res);
                if(res.responseJSON !== undefined){
                    if(res.responseJSON.status === true){
                        table.ajax.reload();
                        Swal.fire({
                            title:'Success',
                            text:res.responseJSON.messages,
                            icon:'success'
                        }).then((done)=>{
                            if (done) {
                                resetForm() 
                                $("my-modal").modal("hide")
                                table.ajax.reload();
                            }
                        })
                    } else {
你可以试着替换
$(“我的模态”).model(“隐藏”)
通过
$(“我的模态”).model(“切换”)

在$(“我的模态”)中什么是“我的模态”。模态(“隐藏”)?如果“我的模态”是类用法。我的模态“或者如果它是id用法”#我的模态”,它应该工作“我的模态”是id,我将“$(#我的模态”)。模态(“隐藏”)改为函数,并调用它,它工作