如何在不重写相同事件的现有方法的情况下绑定jquery插件中的事件

时间:2014-11-27 07:45:08

标签: jquery

这是我的自定义插件

$.fn.custom = function() {
    create: {//some code},
    close: {//some code},
    open: {//some code},
    onClick: {//base on click event handler}
}

现在我将此插件用作

someEle.custom({ 
    onClick:{//how to write separate definition here}
    }).custom('open')

0 个答案:

没有答案