jquery如何选取当前元素下的子元素集合呢?
var tdWidth = _this.children('table.show-head').children('thead').children('tr').children('td').width();
像这样选择特定子元素如何取到子元素td的集合,而不是一个呢?
这样的写法可以简写吗?
jquery如何选取当前元素下的子元素集合呢?
var tdWidth = _this.children('table.show-head').children('thead').children('tr').children('td').width();
像这样选择特定子元素如何取到子元素td的集合,而不是一个呢?
这样的写法可以简写吗?
10 回答11.6k 阅读
2 回答3.1k 阅读✓ 已解决
2 回答4.2k 阅读✓ 已解决
3 回答2.7k 阅读✓ 已解决
3 回答1.8k 阅读✓ 已解决
2 回答1.7k 阅读✓ 已解决
4 回答2.5k 阅读✓ 已解决