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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

  2020-05-13 我要评论
$("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");
}
});

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们