我使用 bootstrap-multiselect 创建测试应用程序。但我无法打开下拉组合框。在页面中我得到异常:Uncaught TypeError: undefined is not a function (anonymous function) About:96jQuery.Callbacks.fire jquery-2.1.1.js:3073jQuery.Callbacks.self.fireWith jquery-2.1.1.js:3185jQuery。 extend.ready jquery-2.1.1.js:3391 完成。我无法确定这个错误
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<script src="~/Scripts/jquery-2.1.1.js"></script>
<script src="~/Scripts/bootstrap-multiselect.js"></script>
<link href="~/Content/bootstrap-multiselect.css" rel="stylesheet" />
HTML 代码: 性别 男 女 其他 男 男
Javascript:
$(document).ready(function () { $('.multiselect').multiselect(); });