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

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

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

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

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

// setTimeout(function() {
	// 	location.reload();
// }, 3000);
发布了128 篇原创文章 · 获赞 250 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/XU441520/article/details/103801751