bootstrap导航条在手机上默认展开二级目录,必须用setTimeout才能实现
bootstrap导航条在手机上默认展开二级目录,必须用setTimeout才能实现
$(document).ready(function() { $('.dropdown').hover(function(){ $('.dropdown').removeClass('open'); $(this).addClass('open'); }); $('.dropdown-toggle').click(function(){ location.href= $(this).attr('href'); }); $('#nav-topbar').mouseleave(function(){ $('.dropdown').removeClass('open'); }); $('#nav-topbar-btn').click(function(){ setTimeout(function(){$('.dropdown').addClass('open');},10); }); });
大自然,飘然的风,QQ群: python技术交流群:453879716,人工智能深度学习群:251088643
golang技术交流群:316397059,vuejs技术交流群:458915921 囤币一族:621258209,有兴趣的可以加入
微信公众号: 心禅道(xinchandao)投资论道
golang技术交流群:316397059,vuejs技术交流群:458915921 囤币一族:621258209,有兴趣的可以加入
微信公众号: 心禅道(xinchandao)投资论道

浙公网安备 33010602011771号