我们可以像这样使用伪选择器 nth-child$('.className:nth-child(8)')
但是如果我想这样使用我该怎么办:
var cname = $('.className');
cname:nth-child(8); // this way obviously not work
Or want to use like this
var $this = $(this);
$this.nth-child(8); // I don't think so it would work
那么,我怎样才能用 jquery 来实现呢?