1.select2(data-live-search="true"可输入属性):
控件
<select class="form-control combox" data-live-search="true" multiple>
<option></option>
</select>
在modal中使用select2无法输入;
解决方法【加上以下代码】:
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
2.点击页面空白处modal消失;
解决方法【加入以下代码】:
jQuery.browser = {};
(function () {
jQuery.browser.msie = false;
jQuery.browser.version = 0;
if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
jQuery.browser.msie = true;
jQuery.browser.version = RegExp.$1;
}
})();