js dynamically generated div unable to use a variety of events such as mouseenter

html file types, fixed div can be used for those events, but if that becomes dynamically generated can not be used,
Solution: event function writes a function dynamically generated, rather than independently in other places

Guess you like

Origin blog.csdn.net/nuoyuezuo/article/details/89241524