摘要: jquery中的on()为新添加的动态元素绑定事件 html代码: jq代码: $("button").click(function(){ $("button").before("<p>"+"新建的"+"</p>") }) $("div p").each(function(){ //点击按钮生成的元 阅读全文