我对jQuery很新.
我写了这段代码来选择子TD元素.
$(this)
.children("div.tablescroll_wrapper")
.children("table.tablescroll_body")
.children("tbody")
.children("tr.first")
.children()
Run Code Online (Sandbox Code Playgroud)
它工作正常,但看起来很糟糕,有更好的方法吗?
对不起我的低级英语,谢谢
我不确定你的html结构,但你想要实现的目标可以实现,
$(this).find("div.tablescroll_wrapper tr.first").children();
Run Code Online (Sandbox Code Playgroud)