這裏是解決方案,爲我工作:
查找:
f.prototype._showPane = function(a) {
this.$items.eq(this.current_pane).toggleClass("active"), a >= this.pane_count && this.pause(), a = Math.max(0, Math.min(a, this.pane_count - 1)), this.$items.eq(a).toggleClass("active"), this.current_pane = a;
var b = -(100/this.pane_count * this.current_pane);
return this._setContainerOffset(b, !0, a), this
}
替換爲:
f.prototype._showPane = function(a) {
if (a >= this.$items.length){ a = 0; }
this.$items.eq(this.current_pane).toggleClass("active"), a >= this.pane_count && this.pause(), a = Math.max(0, Math.min(a, this.pane_count - 1)), this.$items.eq(a).toggleClass("active"), this.current_pane = a;
var b = -(100/this.pane_count * this.current_pane);
return this._setContainerOffset(b, !0, a), this
}
<a href="http://clustersystems.devrun.com/frontapp/js/bootstrap-touch-carousel-custom.js">Here the JS library</a>
什麼的引導,觸摸轉盤。 js或從哪裏來? – cvrebert 2014-09-24 08:18:24