在添加dom时,会同时添加按钮,或者事件。在动态添加的时候,应该用 $(document).on('event','selector',function(){.......})
.on()API:$(selector).on(event,childSelector,data,function,map)
例如:
在添加dom时,会同时添加按钮,或者事件。在动态添加的时候,应该用 $(document).on('event','selector',function(){.......})
.on()API:$(selector).on(event,childSelector,data,function,map)
例如: