所属分类: 网页特效-导航菜单 2023-07-22 11:16:43
$('.nav-tabs-dropdown') .on("click", ".nav-link:not('.active')", function (event) { $(this).closest('ul').removeClass("open"); }) .on("click", ".nav-link.active", function (event) { $(this).closest('ul').toggleClass("open"); });