將按下處理常式附加到按鈕的程式碼片段
//停用多個處理程式,因為這些處理程式可用於框架指令碼中
如果(!this.instance_name_here_click_cbk){
函式instance_name_here_click(evt){
//啟動您的自訂程式碼
console.log(「已按按鈕」);
//結束您的自訂程式碼
}
//將事件處理常式附加至父系,並將篩選條件當作
//元件執行個體的識別碼
$("#dom_overlay_container")。on("click", "#instance_name_here", instance_name_here_click.bind(this));
this.instance_name_here_click_cbk = true;
}