bootstrap 2.0 bootstrap-dropdown.js在我将其添加到js插件列表时出错

bootstrap 2.0 bootstrap-dropdown.js errors out when i add it to my js plugin lists

本文关键字:js 插件 添加 列表 出错 bootstrap-dropdown bootstrap      更新时间:2023-09-26

这是我当前的javascript包含

<%= javascript_include_tag 'jquery','application'  %>

它工作得很好,但现在我添加了bootstrap下拉插件。

<%= javascript_include_tag 'jquery','bootstrap-transition','bootstrap-dropdown','application'%>

我从引导程序下拉文件中得到一个错误(firebug控制台)。

--$("html").on is not a function
[Break On This Error]   
$('html').on('click.dropdown.data-api', clearMenus)-- 

不太确定我在这里做错了什么,或者我没有抓住/得到什么。哦,顺便说一句,旧的引导程序下拉列表对我有用。

您需要升级到jQuery 1.7.1。