3

ここでドキュメントを読んでいます: jQuery, Waypoints, plugin docs

そして、クリック イベントでこの jQuery オブジェクト拡張機能を使用して、ウェイポイントを更新したいと思います。

$.waypoints('refresh')

どうやってそれをしますか?

4

2 に答える 2

3

何のクリックイベント?

ページにボタンを追加するとします。

<button id="refreshWaypointsBtn" type="button">Refresh the waypoints.</button>

次に、次のようにアクティブにします。

$("#$refreshWaypointsBtn").click ( function () {
    $.waypoints ('refresh');
} );
于 2011-08-02T00:18:07.997 に答える