JS 代码打开 中文路径的报表,如何操作?
/webroot/decision/view/form?viewlet=%5B533b%5D%5B9662%5D%5B7ba1%5D%5B7406%5D%2F%5B529e%5D%5B516c%5D%5B7ba1%5D%5B7406%5D%2F%5B4e8b%5D%5B52a1%5D%5B7ba1%5D%5B7406%5D%2F%5B65e5%5D%5B7a0b%5D%5B7ba1%5D%5B7406%5D_%5B65e5%5D.frm
var url = encodeURI("${servletURL}?viewlet=测试.cpt&op=write");
这样转码然后跳转;
${servletURL} 直接获取你项目,后面拼接就好;
具体用法参考帮助文档
最简单的办法:先在设计器中预览,在浏览器地址栏中截取编译的路径复制到js中就可以了