$(document).ready(function(){dropdownOpen();});function dropdownOpen() {var $dropdownLi = $(‘li.dropdown‘);$dropdownLi.mouseover(function() {$(this).addClass(‘open‘);}).mouseout(function() {$(this).removeClass(‘open‘);});}
bootstrap hover显示二级菜单
原文:http://www.cnblogs.com/cndxk/p/4748837.html