测试使用
// 父级
program_series = $(this).parents().attr('data-name')
// 子级
$(this).children('.task_num')


本文链接:jquery each获取父级、子级元素 - https://myags.cn/index.php/57.html

版权声明:如无特别声明,本文即为原创文章,仅代表个人观点,版权归 拾穗儿's 所有,未经允许不得转载!
最后修改:2020 年 08 月 11 日 04 : 22 PM
如果觉得我的文章对你有用,请随意赞赏