• Как добавить span в коде js?

    @antdigo
    if (this.options.pagination.active) {
      i = e("<ul>", {
        "class": "slidesjs-pagination"
      }).appendTo(n);
      e.each(new Array(this.data.total), function(t) {
        var n, p, r;
        n = e("<li>", {
          "class": "slidesjs-pagination-item"
        }).appendTo(i);
        p = e("<span>").appendTo(n);
        r = e("<a>", {
          href: "#",
          "data-slidesjs-item": t,
          html: t + 1
        }).appendTo(p);
        return r.click(function(t) {
          t.preventDefault();
          a.stop(!0);
          return a.goto(e(t.currentTarget).attr("data-slidesjs-item") * 1 + 1)
        })
      })
    }
    Ответ написан
    Комментировать