(function($){
$.ligerDialog.confirm = function (content, title, callback)
{
if (typeof (title) == "function")
{
callback = title;
type = null;//我只想改这行的代码 改为type='xxxx'
}
//.............此处略去500行
$.extend(p, {
showMax: false,
showToggle: false,
showMin: false
});
return $.ligerDialog(p);
};
})(jQuery)
直接复写jQuery.ligerDialog.coonfirm = function(){} 的确可以。但是这个方法有500行代码,我为了改1行,去写500行重复代码,不值。
怎么破,在线等