js代码操作表格

2025-05-16 17:23:51
推荐回答(1个)
回答1:

jQuery的行吗?

$('table tbody tr').live('dblclick', function(){
    var str = [];
    $(this).children('td').each(function(){str.push($(this).text());});
    alert(str.join(',');
});