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.
私は助けが必要です。「scrollable」内のdivタグをスクロールする次の戻るボタンで動作するスクローラーがありますが、ページがロードまたはリロードされるときに自動的にdivタグにジャンプする必要があります。つまり、5divタグから開始します。これは可能ですか?以下の私のコード/サンプルリンク
$(function(){$( "div.scrollable")。scrollable();});
$(function() { $("div.scrollable").scrollable(); var api = $("div.scrollable").data("scrollable"); api.move(4); // moves the scroller 4 places // or: api.seekTo(5); goes directly to index set. });
Haventはテストしましたが、サイトでapi関数を検索できます。これは機能するはずです。:)