Why react with the click event rather than bind other

Change the function of this points to a total of three

call() apple() bind()

call and apple are immediately execute the function, and bind a callback function is executed

If a call and apple, then he will be executed immediately, click event does not require immediate implementation,

Only need to change the function in this click point, and therefore the use of the bind ();

This is what I understand, do not know right! Brother, please let me know

Guess you like

Origin www.cnblogs.com/wulicute-TS/p/12000870.html