从2020年7月9日起,谷歌图表将不再显示在IE11中

时间:2020-07-09 14:08:48

标签: javascript google-visualization internet-explorer-11

我们在网站上使用Google Charts已经有好几年了,在所有主要浏览器上都没有出现问题。今天早上(2020年7月9日),所有IE11浏览器现在在执行图表库加载代码时都会出错,如下所示:

function loadGoogle() {
  // define callback in load statement
  try {
    google.charts.load("current", {packages:["corechart","timeline"],'callback': loadcomplete});
  } catch(err) {
      cdpAlert("Google Charts Could not be loaded. Please check your internet connection. Error: " + err);
  }
}

错误是:“对象不支持对象或方法分配”。

View Google Chart Error Message

我已经检查了Google自己的图表库,并且也无法在IE11中显示图表:

https://developers.google.com/chart/interactive/docs/gallery?hl=es-419

作为Google特色网站的新加坡地铁仪表板也无法在IE11中显示图表:

http://failrailsg.appspot.com/overview.html

我在网络上看不到任何讨论,在Google Charts网站上也没有提及对IE11的任何支持取消。

任何人遇到此问题或对Google图表中的IE11支持被删除一无所知。

1 个答案:

答案 0 :(得分:0)

我不知道它何时才能继续工作,但是检查了Google Charts网站并意识到仍然可以在Internet Explorer中工作,请检查引用,它使用:https://www.gstatic.com/charts/48.1/loader.js不是普通的{{3 }}

相关问题