首页 > 编程 > JavaScript > 正文

jquery 最简单的属性菜单

2019-11-21 01:06:08
字体:
来源:转载
供稿:网友
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 你完成了!
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表