中国开发网: 论坛: 程序员情感CBD: 贴子 700814
张秋桥: 里面有个用户评论很好,一行程序完成常见的“显示选中的,隐藏其他的”,反映了jQuery。
Tim Leach
Feb 11, 2009 at 12:47 PM // reply »
1 Comments
9 Points

Very well done. I've been in love with jQuery since I started looking into it.

I would have to say so far my favorite feature would be the ability to do this:

function show(i){
$('ul.li').eq(i).show().siblings().hide();
}

after I learned how to use it, the ".siblings()" function really rocked my world.

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录