zl程序教程

您现在的位置是:首页 >  后端

当前栏目

使用delegate方法为一个tr标签加一个链接

方法链接 使用 一个 标签 tr Delegate
2023-06-13 09:15:32 时间
$("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?sid="+rollcall_id,"mframe");
}
});