当你调取接口进行部分刷新时:
//声明变量
var format = new Format(editorUi, document.getElementsByClassName('geFormatContainer')[0]);
//调取刷新
format.refresh();
其中框架本身就带有this.refresh()方法,如果按需使用的话,最好自定义变量来解决this的问题。
这样就不用使用之前的延时刷新了:
// setTimeout(function() {
// location.reload();
// }, 3000);