https://jsfiddle.net/sathishkrcs/x581...
Use .bind() when you want that function to later be called with a certain context, useful in events. Use .call() or .apply() when you want to invoke the function immediately, and modify the context.
Call/apply call the function immediately, whereas bind returns a function that, when later executed, will have the correct context set for calling the original function. This way you can maintain context in async callbacks and events.
https://stackoverflow.com/questions/1...
Auf dieser Seite können Sie das Online-Video Apply, Call, and Bind Methods | Advanced JavaScript mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Astute JS 12 September 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3,463 Mal angesehen und es wurde von 35 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!