加个延时
setTimeout(function() {
你的JS代码;
}, 500);
----------------------
检查js是否有问题
工具栏接口 https://help.fanruan.com/finereport/doc-view-4295.html
这个是11版本才有的接口,你是不是不是11版本,是以前的版本,那是不支持
例如10版本参考工具栏接口-https://help.fanruan.com/finereport10.0/doc-view-4010.html