你好,顶部的模块要是请求过来的,怎么控制页数和本页的模块个数
<div class="swiper-slide swiper-slide-active" style="width: 701px;">//swiper每一页都有个swiper-slide容器
<div class="item">
<div>
//这里面遍历返回模块数据
<div class=" charset"> <a>
<p class="img" style="background-image: url(images/xiaojinku.png);"> </p>
<span>手机充值</span> </a> </div>
<div class=" charset"> <a>
<p class="img" style="background-image: url(images/creditrepayment.png);"> </p>
<span>转账</span> </a> </div>
<div class=" charset"> <a>
<p class="img" style="background-image: url(images/miaobanxinyongka.png);"> </p>
<span>一分钱专享</span> </a> </div>
</div>
</div>
</div>
为确保遍历后能正常使用 建议做完数据处理后再初始化