在BootStrap的modal中使用Select2

  bootstrap 3

$.fn.modal.Constructor.prototype.enforceFocus = function() {};

bootstrap4

$.fn.modal.Constructor.prototype._enforceFocus = function() {};
原文地址:https://www.cnblogs.com/w2011/p/9849703.html