<div class="labs" style=“display:none”>
<div class="swiper-wrapper">
{{each $data.result}}
<div class="swiper-slide">
<ul class="cf">
{{each $value x}}
<li class="fl table">{{x}}</li>
{{/each}}
</ul>
</div>
{{/each}}
</div>
</div>
var lables = new Swiper('.labs', {
observer: true,//修改swiper自己或子元素时,自动初始化swiper
observeParents: true//修改swiper的父元素时,自动初始化swiper
})