本文出自:
js:
$('#registCompany').modal({backdrop: 'static', keyboard: false});
参数说明:
backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
引用
html :
<div className="modal fade"
id="editorCategory"
role="dialog"
aria-labelledby="editorModalLabel"
aria-hidden="true"
data-backdrop="static"//这边
data-keyboard="false"//这边
>