使用delegate方法为一个tr标签加一个链接_Javascript教程-查字典教程网
使用delegate方法为一个tr标签加一个链接
使用delegate方法为一个tr标签加一个链接
发布时间:2016-12-30 来源:查字典编辑
摘要:$("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"); } });

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新Javascript教程学习
    热门Javascript教程学习
    编程开发子分类