js jquery动态生成的table,点击行时颜色变化,怎么弄

2025-03-24 01:52:01
推荐回答(1个)
回答1:

$("body").delegate("table","click",function(){
$(this).css("backgroundColor","red");

});