我试图移动一些 div,但是我似乎无法选择它们只是通过对象对象:
<div class="partnerGroupContent">
<div class="column">
<div class="sponsor">1</div>
<div class="sponsor">2</div>
</div>
<div class="column1">
<div class="sponsor">3</div>
<div class="sponsor">4</div>
</div>
</div>
var rowCount = 2
var myColumn = $('.partnerGroupContent:nth-child(2)')
if (rowCount == 2) {
$('.partnerGroupContent').after('<div class="partnerGroupContent2">' + myColumn + '</div>');
}
任何帮助表示赞赏,谢谢!