2011-08-01 32 views

回答

3

點擊事件是什麼?

假設你添加一個按鈕的頁面:

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

然後,你激活它,像這樣:

$("#$refreshWaypointsBtn").click (function() { 
    $.waypoints ('refresh'); 
});