html 中的 js 的下拉菜单
$(document).ready(function() {
$(".drop-down>li").click(function() {
var sub = $(this).children(".sub");
sub.slideDown(400);
var siblings = $(this).siblings().children(".sub");
siblings.slideUp(400);
$(this).children("span").children("i").removeClass("fa fa-angle-double-left");
$(this).children("span").children("i").addClass("fa fa-angle-double-down");
$(this).siblings().children("span").children("i").removeClass("fa fa-angle-double-down");
$(this).siblings().children("span").children("i").addClass("fa fa-angle-double-left");
});
});
$(document).ready(function() {
$(".card-drop-down>li").click(function() {
var sub = $(this).children(".card-sub");
sub.slideToggle(400);
});
});