BootStrap 模态框点击遮罩层禁止关闭

  • Post author:
  • Post category:其他


下面是代码部分

$('#myModal').modal({show:true,backdrop: 'static', keyboard: false});


show:true

显示模态框,false不显示模态框

backdrop:static

禁止遮罩层的点击关闭

keyboard:false

禁止键盘ESC


转载于:https://my.oschina.net/deacyn/blog/510745