當你調取接口進行部分刷新時:
//聲明變量
var format = new Format(editorUi, document.getElementsByClassName('geFormatContainer')[0]);
//調取刷新
format.refresh();
其中框架本身就帶有this.refresh()方法,如果按需使用的話,最好自定義變量來解決this的問題。
這樣就不用使用之前的延時刷新了:
// setTimeout(function() {
// location.reload();
// }, 3000);