var $span = $('.fr-checkbox-checkon'); //获取选中的复选框 var $tds = $("td").has($span); //定义选中复选框的单元格 var $trs = $("tr").has($tds); for (var i = 1; i < $trs.length; i++) { var name = $("td:eq(2)", $($trs[i])).find("div").html(); //获取选中的C3单元格的值 alert(name); window.open("http://localhost:8075/webroot/decision/view/report?viewlet=%25E5%25AD%2590%25E8%25A1%25A8.cpt&op=write&id="+name+"&format=excel&extype=simple"+"&__filename__="+name); } //子报表设计完成后,点击填报预览,将子表的URL复制到&id之前 |