$("#gxpt").on("click","#txpt_tsbh",function(){
// some codes;
}
);
on方法包含很多事件,点击,双击等等事件。$(document).on(‘click’,’.className’,function(){})是将指定的事件绑定在document上,而新产生的元素如果符合指定的元素,就能够触发事件。
$("#gxpt").on("click","#txpt_tsbh",function(){
// some codes;
}
);
on方法包含很多事件,点击,双击等等事件。$(document).on(‘click’,’.className’,function(){})是将指定的事件绑定在document上,而新产生的元素如果符合指定的元素,就能够触发事件。