Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何检查最后一项?在版本 1 中具有功能“maximumItem”
afterAction: function () { if (this.currentItem == this.maximumItem) { }
$(".owl-carousel").on('initialized.owl.carousel changed.owl.carousel refreshed.owl.carousel', function (e) { if (!e.namespace) return; var carousel = e.relatedTarget, current = carousel.current(); if (current === carousel.maximum()) { ... } });