日期:2014-05-16 浏览次数:20281 次
//for test extjs function interceptor function check(a){ return a==='cjd'; } function send(){ alert("pass"); } var fn = send.createInterceptor(check); fn('cjd');//alert pass //or var fn1 = send.createInterceptor(function(a){ return a==='cjd1'; }); fn1('cjd1');//alert pass