myChart = echarts.init(document.getElementById('demo')); myChart.dispose() // 释放之前的图表的资源,便于进行其他操作,释放资源之后可以进行区域的重复定义