2019-03-17 svg渲染出现resize后数据未绑定的问
2019-03-17 本文已影响0人
qiaoguoxing
可以先把找到这个svg,然后把svg通过remove的方式从div中移除。然后重新绘制svg,并且重新绑定svg的方法,类似下面这段代码。
$("#quotesDonut2").parent("svg").remove();
_this.drawPie();
_this.PieAlertFlag();
可以先把找到这个svg,然后把svg通过remove的方式从div中移除。然后重新绘制svg,并且重新绑定svg的方法,类似下面这段代码。
$("#quotesDonut2").parent("svg").remove();
_this.drawPie();
_this.PieAlertFlag();