這個寫的監聽問題是,當瀏覽器加載完成,用戶自行點擊增加table的一行表格,在新一行表格點擊不了“規格明細按鈕”,故沒有繼續監聽。第一行表格可以點擊,第二行表格點擊不了。這個問題怎么解決?jquery$('.edit-CustomCaption').on('click',function(){ var el = $(this); el.parent().find('.CustomCaption-box').show();});$('.CustomCaption-close a').on('click',function () { var el = $(this); el.parent().parent().hide();});$(".CustomCaption-add").click(function(){ $(".CustomCaption-text").append("<input type='text'><br>");});
jquery如何監聽增加table的變化?
滄海一幻覺
2018-09-10 13:23:01