具体看你是打开弹窗、新窗口或者平台内标签打开,不同形式JS略有差异。
以弹窗为例:
var iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='yes' framedorder='0'>");// 对话框内 iframe 参数的命名,默认宽高占比是 100%,可向下滚动iframe.attr("src", cc+"?reportlet=GettingStarted.cpt");// 给 iframe 添加 src 属性var o = {width : 700,//对话框宽度 height: 500//对话框高度};FR.showDialog("添加", o.width, o.height, iframe,o);//弹出对话框
具体可以看看帮助文档【https://help.fanruan.com/finereport/doc-view-2511.html】