“`”

delegate() 方法为指定的元素(属于被选元素的子元素)添加一个或多个事件处理程序,并规定当这些事件发生时运行的函数。
使用 delegate() 方法的事件处理程序适用于当前或未来的元素(比如由脚本创建的新元素)。(“div”).delegate(“button”,“click”,function(){(“p”).slideToggle();});

<pre><code> "“`

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.