这是我的自定义插件
$.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')