javascript - How to determine the method name to call for a self-executing function?
高洛峰
高洛峰 2017-05-19 10:21:38
0
1
310

There is a dom1 in the page that has used on to delegate the click event, but a batch of dom1s will be dynamically loaded later. I am now turning this click event into a method. .
The method will be executed again after loading. .

Is there a better way

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
Peter_Zhu

Hang the event on the public parent element and act as an event proxy.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template