return true 和 return false 和 return

1.return false: the equivalent of terminator, did three things, prevents the default behavior to cancel event bubbling, and return immediately to stop the implementation of the callback;

2.return: Stop callback execution to return immediately;

3.return true: the same as executing character, continue with the following statement.

Guess you like

Origin www.cnblogs.com/linziwei/p/11364084.html