jq 加入的dom点击事件不能点击的问题

jq 加入的div不能绑定点击事件,百度了一下果真有简单的解决方法。html $(document).on('click','.demo',function(){ alert("弹出提示后"); $('.hou img').html("<img src='img/fanpaijinbi_xianzhong.png' />"); });  缘由是document加载时还
相关文章
相关标签/搜索