(echarts)中使用中国地图 前台调试工具持续报错: Uncaught DOMException: Failed to execute ‘drawImage’ on ‘CanvasRenderingContext2D’: The image argument is a canvas element with a width or height of 0, 原因: 报错大概是在绘制图形时画布大小为0,把写在css样式文件中的宽高设置给在行内就可 <div id="mapEcharts" style="width: 100%; height: 1000px;"></div> 解决参考:https://www.cnblogs.com/isme-zjh/p/13508144.html