首页 > 语言 > JavaScript > 正文

jquery 最简单的属性菜单

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

图片精选