我写了一个扩展方法如下:
$.extend({
MyFunctionA:function(title,afterSpeak){
alert(title);
if(afterSpeak){
afterSpeak[overFlag] = 'y'; //这句不起作用
afterSpeak();
}
}
})
使用如下:
$.MyFunctionA('hello',function(overFlag){
alert(overFlag);
}
)
请教一下大家,如何在extend 扩展方法中 指定overFlag这个参数的值?