我有一个day
班级动态:
<div class="day day111">a</div>
<div class="day day111">a</div>
<div class="day day112">a</div>
<div class="day day112">a</div>
<div class="day day113">a</div>
我试图得到这个:
<div class="group">
<div class="day day111">a</div>
<div class="day day111">a</div>
</div>
<div class="group">
<div class="day day112">a</div>
<div class="day day112">a</div>
</div>
<div class="group">
<div class="day day113">a</div>
</div>
我只能在javascript中做到这一点。我正在尝试循环,但我无法分组。你能帮助我吗?谢谢!