Bootstrap4 避免在点击外部任何地方时隐藏模态

Bootstrap4 avoid hiding modal when clicking anywhere outside

我想覆盖此默认行为。 知道如何实现吗?

来自HTML

<a data-controls-modal="your_div_id" data-backdrop="static" data-keyboard="false" href="#">

来自Jquery

$('#your_id_modal').modal({backdrop: 'static', keyboard: false})

PD:我把完整的文档留给你

https://getbootstrap.com/docs/3.4/javascript/#modals-options