front-end beginners have been around this scope for a long time today.
this is my code, and the result is that the background of the li element in it turns black directly, as if onmouseover had been overwritten. I found the solution, which is to bind hoverLi and leaveLi in for with bind (lisi) and assign properties with this, but why is that okay, so it makes me more confused about the scope. I would like to ask the great god to give me a reminder and answer. Thank you very much