```
var twChart = echarts.init(document.getElementById('twChart'));
twChart.setOption(option);
setTimeout(function (){
window.onresize = function () {
twChart.resize();
}
},200)
```
```
var twChart = echarts.init(document.getElementById('twChart'));
twChart.setOption(option);
setTimeout(function (){
window.onresize = function () {
twChart.resize();
}
},200)
```
本文标题:echarts如何实现动态自适应宽高
本文链接:https://www.haomeiwen.com/subject/kxgljqtx.html
网友评论