函数有jq,使用swiper版本3.4.2
swiperList() {
var imgTextId = $("#imgText");
var igtli = imgTextId.find("li");
var _html = "";
igtli.each(function (index) {
var title = $(this).attr("data-title");
if (index === 0) {
_html +=
'<li class="igt_li on"><div class="item_span"><div class="tit">' +
'<span class="item_spans">' +
title +
"</span>" +
"<span>" +
"/" +
"</span>";
("</div></div></li>");
} else {
_html +=