例如,
function user(){ flow.exec( function(){ call a; }, function(){ call b; } ); } function posts(){ flow.exec( function(){ call a; }, function(){ call c; } ); }
按照上面的代码,我如何在不同模型上调用通用函数(调用a)
function perform(first, second) { flow.exec(first, second); } function callA() { a(); } function callB() { b(); } perform(callA, callB);