chart.exporting.getImage(“ png”)在IE 11中不起作用

时间:2019-07-17 07:00:13

标签: javascript amcharts

当我尝试将图像导出为PDF时,它在IE 11中显示如下错误

  

未处理的承诺拒绝错误:加载块2失败。          “未兑现的承诺被拒绝”            {             [功能]: ,              proto :{},             描述:“加载块2失败。”,             消息:“加载块2失败。”,             名称:“错误”,             堆栈:“错误:加载块2失败。          发送(http://localhost:8081/NPO/js/core.js:19:408854          在匿名函数(http://localhost:8081/NPO/js/core.js:19:433611)          在匿名函数(http://localhost:8081/NPO/js/core.js:19:409701)          在匿名函数(http://localhost:8081/NPO/js/core.js:19:409045)          于s(http://localhost:8081/NPO/js/core.js:19:408629)          在(http://localhost:8081/NPO/js/core.js:19:621222)          在匿名函数(http://localhost:8081/NPO/js/core.js:19:621369)          在l(http://localhost:8081/NPO/js/core.js:19:454773)“          }

 chart.exporting.getImage("png").then(function(imgData) {    
    console.log(imgData); // contains exported image data            
 }

它不应显示错误

0 个答案:

没有答案