1.重写 bootstrap 的focus 方法

$(document).ready(function(){
    $.fn.modal.Constructor.prototype.enforceFocus = function() {
        //$(".chosen-select").trigger("focus");
        //$("#name").focus();
    };
})

本文转载:CSDN博客