填报报错:根据勾选列某列值“内部”or else 跳转到不同模板页面编辑勾选按钮事件JS如下,求指正:var cr;if(window.lineboxes) { var cells = ; for (var i = 0; i < lineboxes.length; i++) { if (lineboxes.selected()) { cells = lineboxes.options.location; cr=FR.cellStr2ColumnRow(window.lineboxes.options.location); } } if(cells.length==0 || cells.length>1){ FR.Msg.alert("警告","请选择一条数据进行编辑!"); }else{ var $iframe = $("if(_g().getCellValue(4, cr.row)='内部'){$iframe.attr("src", FR.cjkEncode("${servletURL}?reportlet=/in.cpt&op=write_plus&task_id=" +_g().getCellValue(3, cr.row)));}else{$iframe.attr("src", FR.cjkEncode("${servletURL}?reportlet=/out.cpt&op=write_plus&task_id=" +_g().getCellValue(3, cr.row)));} var o = {title : "编辑",width: 600,height: 400};FR.showDialog(o.title, o.width, o.height, $iframe,o); //首先弹出对话框 }}