manually call a function in javascript?

How do you do this? like PHP has call_user_func

I'm trying to pass a callback function to jQuery.animate(), like this

complete: function(){ 
  // do_something 
  call_function(my_callback); // here need to call my_callback



You can simply call it like you would any function


JavaScript also has a call method that some people prefer;

Here's a link I found with some extra information regarding the call method.


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us Javascript

©2020 All rights reserved.