var table = $("#removedeparttable");
var checkbox = $("table input[type=checkbox]:checked");// 在table中找input下类型为checkbox属性为选中状态的数据
var d_id = new Array($("input[type='checkbox']:checked").length);
var i = 0;
checkbox.each(function() { // 遍历checkbox里的内容
var row = $(this).parent("td").parent("tr"); // 根据this的表获取行
d_id[i++] = row.find("[name='d_id']").html(); // 获取一行中name='d_id'的列的值
});