隔壁老王(提问者)
我的选择框在A列,想把B列和J列取出来传到打开路径里去。我先取B列,结果这个不能传递过去,还请指教
万分感激!
var $span = $(\".x-checkbox-checkon\");
var barcode = [];
var $tds = $(\"td\").has($span);
for (var i = 0, len = $tds.length; i < len; i ++) {
var id = $($tds).attr(\"id\");
var idn = id.replace(\"A\",\"B\");
var vv=document.getElementById(idn).innerHTML;
barcode.push(\"\'\"+vv+\"\'\");
}
open(\"/WebReport/ReportServer?reportlet=biozon_reportserver/template/10086.cpt&barcode=\"+barcode);