📜  jquery 监听稍后创建的类的点击 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:42.309000             🧑  作者: Mango

代码示例1
// If "tr" is created dynamically.
$("#dataTable tbody").on("click", "tr", function(event){
    console.log($(this).text());
});