使用delegate方法为一个tr标签加一个链接
摘要:$("table").delegate("tr","click",function(e){checkbox=$(this).children...
$("table").delegate("tr","click",function(e){ checkbox=$(this).children().first().children()[0]; alter=$(this).children().eq(8).children().children()[0]; delet=$(this).children().last().children().children()[0]; if(e.target!=checkbox&&e.target!=alter&&e.target!=delet){ rollcall_id=$(this).children().first().children().val() open("/Student/student"+rollcall_id,"mframe"); } });
【使用delegate方法为一个tr标签加一个链接】相关文章:
★ 讲解JavaScript中for...in语句的使用方法
★ js鼠标事件
★ JQuery使用index方法获取Jquery对象数组下标的方法
★ JavaSacript中charCodeAt()方法的使用详解