如何清除或初始化 easyui 的 treegrid 控件的数据?
清除 treegrid 可以用 loadData 方法载入一个空的 json 来完成。
$('#theTreeGrid').treegrid('loadData', []);
而控件 ComboTree 有 clear 方法,可以用以下方法清除所有内容
$('#theComboTree').combotree('clear');
本文介绍了如何使用easyui库中的treegrid控件进行数据清除和初始化的方法,包括使用loadData方法加载空json来清空数据,以及针对ComboTree控件的clear方法。
如何清除或初始化 easyui 的 treegrid 控件的数据?
清除 treegrid 可以用 loadData 方法载入一个空的 json 来完成。
$('#theTreeGrid').treegrid('loadData', []);
而控件 ComboTree 有 clear 方法,可以用以下方法清除所有内容
$('#theComboTree').combotree('clear');
1342

被折叠的 条评论
为什么被折叠?