当前位置: 代码迷 >> 综合 >> mxgraph-------刷新的部分问题
  详细解决方案

mxgraph-------刷新的部分问题

热度:28   发布时间:2024-01-24 17:56:19.0

当你调取接口进行部分刷新时:

//声明变量
var format = new Format(editorUi, document.getElementsByClassName('geFormatContainer')[0]);
//调取刷新
format.refresh();

其中框架本身就带有this.refresh()方法,如果按需使用的话,最好自定义变量来解决this的问题。

这样就不用使用之前的延时刷新了:

// setTimeout(function() {// 	location.reload();
// }, 3000);