Je veux écrire ma propre fonction en JavaScript qui prend une méthode de rappel comme paramètre et l'exécute après l'achèvement, je ne sais pas comment invoquer une méthode dans ma méthode qui est passée comme un argument. Comme Reflection.
exemple de code
function myfunction(param1, callbackfunction)
{
//do processing here
//how to invoke callbackfunction at this point?
}
//this is the function call to myfunction
myfunction("hello", function(){
//call back method implementation here
});