var printurl="http://192.168.0.165:37799/webroot/decision/view/report";var run_ids = ; var paths = ; var singlepaths = ; var $span = $('.fr-checkbox-checkon'); var $tds = $("td").has($span); var $trs = $("tr").has($tds); var p=; if($trs.length==0){ alert('勾选项不可全为空!');//未选中时不可打印}else{for(var i=0; i<$trs.length;i++){ var run_id = $("td:eq(0)",$($trs)).html(); var cptpath ="鼎捷E10/领料单明细1.cpt"; var urlstring = "{reportlet:" + "'" + cptpath + "'" + ",item_no:" +"'"+ run_id +"'}"; debugger; paths.push(urlstring); debugger;} if(paths.length>0){ var rpaths=paths.join(","); var reportlets=""; var config = { printUrl : printurl, printType : 0, isPopUp : false, data : {reportlets:reportlets} }; } debugger; FR.doURLPrint(config);}