解决办法: 在js里加一句 $.fn.modal.Constructor.prototype.enforceFocus = function(){}; 转载于:https://www.cnblogs.com/tujia/p/8548632.html