bootstrap 3
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
bootstrap4
$.fn.modal.Constructor.prototype._enforceFocus = function() {};
在BootStrap的modal中使用Select2
原文:https://www.cnblogs.com/w2011/p/9849703.html