更新时间:2023-09-29 20:48:52
在下面的行中的事件处理程序附加click事件的元素,当您添加处理程序的选择匹配。
The event handler in the below line attaches the click event to the element matching the selector when you add the handler.
$(".addChunk").click(function(){create_chunk(this.parentNode)})
您可以使用href=\"http://api.jquery.com/live/\" rel=\"nofollow\">现场处理来做到这一点的
you can use the live handler to do this. the following code will solve your problem
$(".addChunk").live('click'. function(){create_chunk(this.parentNode)});