Excuse me, use jQ to bind a mousemove event, and the event needs to pass in parameters, and must support unbinding. How to implement this?
If you use an anonymous function, you cannot unbind it. If it is not anonymous, it seems that you cannot pass parameters.
Just give the anonymous function an internal name.
Why can’t I unbind myself when I write anonymously? ? ?
Named function binding, parameter passing and unbinding:
Anonymous function binding, parameter passing and unbinding: