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.
我找到了这个:
impress().next(); impress().prev(); impress().goto(10);
但我不知道如何使用它?有没有办法实现两个简单的按钮,它们可以进一步或返回一张幻灯片?
好吧,我想通了:
<button id="prev"></button> <button id="next"></button> $("#next").click(function () { api.next(); }); $("#prev").click(function () { api.prev(); });
就是这样,比我想象的要容易。