bootstrap中modal框数据不清空,怎么解决

2025-04-19 20:59:23
推荐回答(1个)
回答1:

你需要设置模态窗口的选项options$('#QrCode_Modal').modal({show:true,backdrop:'static'});方法下面是一些可与modal()一起使用的有用的方法。方法描述实例Options:.modal(options)把内容作为模态框激活。接受一个可选的选项对象。$('#identifier').modal({keyboard:false})Toggle:.modal('toggle')手动切换模态框。$('#identifier').modal('toggle')Show:.modal('show')手动打开模态框。$('#identifier').modal('show')Hide:.modal('hide')手动隐藏模态框。$('#identifier').modal('hide')