我用以下方法扩展了两个方法:addEditor和removeEditor 但是在调用时,会报下面的错误
$.extend($.fn.iEdatagrid.defaults, {
addEditor : function(jq, param) {
if (param instanceof Array) {
$.each(param, function(index, item) {
var e = $(jq).iEdatagrid('getColumnOption', item.field);
e.editor = item.editor;
});
} else {
var e = $(jq).iEdatagrid('getColumnOption', param.field);
e.editor = param.editor;
}
},
removeEditor : function(jq, param) {
if (param instanceof Array) {
$.each(param, function(index, item) {
var e = $(jq).iEdatagrid('getColumnOption', item);
e.editor = {};
});
} else {
var e = $(jq).iEdatagrid('getColumnOption', param);
e.editor = {};
}
}
});
调用代码
报错信息