$(document).ready(function(){dropdownOpen();});function dropdownOpen() {var $dropdownLi = $('li.dropdown');$dropdownLi.mouseover(function() {$(this).addClass('open');}).mouseout(function() {$(this).removeClass('open');});}
转载于:https://www.cnblogs.com/cndxk/p/4748837.html