Closed gnastnosaj closed 9 years ago
iSlider加载内容的机制导致dom绑定的事件会失效,请教有效解决办法。
可以用事件代理来做,绑定在外层元素上
dom是iSlider这样的控件怎么办呢?比如嵌套的时候
iSlider提供了一个bind方法,islider.bind('click', '#id', callback)
谢谢
iSlider加载内容的机制导致dom绑定的事件会失效,请教有效解决办法。