目前JS是如下写法: if (syxh =="QT") {var url= "${servletURL}?reportlet=ZB/BRLB.cpt&op=write&bqdm="+bqdm} else {var url= "${servletURL}?reportlet=ZB/BLNR.cpt&op=write&syxh="+syxh} //窗体 var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>"); //将窗体的src属性设置为模板路径 $iframe.attr("src", url); //窗体的属性 var o = { title: "对话框", //标题 destroyOnClose:true, // 是否在关闭对话框的时候将对话框从dom中移除 width: 680, height: 1280, }; //弹出窗体 FR.showDialog(o.title, o.width, o.height, $iframe, o); |