响应式页面中的echart
let that = this
that.resizefun = () => {
echarts.init(document.getElementById("chart01")).resize();
echarts.init(document.getElementById("chart02")).resize();
echarts.init(document.getElementById("chart03")).resize();
echarts.init(document.getElementById("chart04")).resize();
echarts.init(document.getElementById("chart05")).resize();
echarts.init(document.getElementById("chart06")).resize();
echarts.init(document.getElementById("chart07")).resize();
};
window.addEventListener("resize", that.resizefun);
本文来自博客园,作者:小基狠努力啊,转载请注明原文链接:https://www.cnblogs.com/ylh188/p/15218978.html