Welcome 微信登录

首页 / 脚本样式 / JavaScript / jquery 最简单的属性菜单

1.0 创建 <UL> 菜单树! 并影藏 子选项!
2.0 加入!
复制代码 代码如下:
$("li:has(ul)").click(
function (){$(this).children("ul").css("display")=="none"?$(this).children("ul").show("slow"):$(this).children("ul").hide("slow");
}
);

3.0 你完成了!