使用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 定时器 SetTimeout之定时刷新窗口和关闭窗口(代码超简单)
★ JQuery使用index方法获取Jquery对象数组下标的方法
★ JavaScript中用getDate()方法返回指定日期的教程
★ 使用RequireJS优化JavaScript引用代码的方法
★ JavaScript使用addEventListener添加事件监听用法实例
★ JQuery中attr方法和removeAttr方法用法实例