读过我上一篇的可能发现,这些与默认属性的设置原理是一样的
$.fn.combobox.defaults.loadFilter = function (data) {
return data;
}
$.fn.tree.defaults.onLoadError = function (arguments) {
$.messager.show({
title: "系统提示",
msg: "网络错误,或无法访问服务器",
width: 350,
heigth: 200,
style: {
top: document.body.scrollTop + document.documentElement.scrollTop,
}
});
}