当这发生时,鼠标单击事件从文档根行进到目标(li)并再次返回。
When that happens, the mouse click event travels from the root of the document to the target (li) and back again. The sequence is.
如果有一个鼠标单击事件发生,它将在客户区中鼠标光标的位置处绘制这个字符串。
If at least one mouse click has occurred, it draws the string in the client area at the mouse position.
它的优点是您不受限于如鼠标单击之类的预定义事件。
The advantage here is that you're not limited to predefined events such as a mouse click.
应用推荐