文档都是新窗口,或者对话框,那怎么通过JS在当前窗口打开URL呢?
window.location = encodeURI(encodeURI("${servletURL}?viewlet=${reportName}&op=view"));
或者
window.location.href=url;
var url = FR.cjkEncode("/WebReport/ReportServer?reportlet=/xxx.cpt");
var title = 'xxx';
FR.doHyperlinkByGet({
url: url,
title: title,
target: '_self'
});