摘要: //第一题 $('div.author').bind('click',function(){ $(this).addClass('selected'); //console.log(123); }); //第二题 $('h3.chapter-title').dblclick(function(event){ $(event.target).parent... 阅读全文
posted @ 2013-11-29 19:20 我只是程序员 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 1 //第一题 1. 2 $('#selected-plays>li>ul>li').addClass('special'); 3 //2. 4 $('li').children().find('li').addClass('special'); 5 6 //第二题 7 $('tr').find('td:eq(2)'... 阅读全文
posted @ 2013-11-29 15:55 我只是程序员 阅读(269) 评论(0) 推荐(0) 编辑