jq 加入的dom點擊事件不能點擊的問題

jq 加入的div不能綁定點擊事件,百度了一下果真有簡單的解決方法。html $(document).on('click','.demo',function(){ alert("彈出提示後"); $('.hou img').html("<img src='img/fanpaijinbi_xianzhong.png' />"); });  緣由是document加載時還
相關文章
相關標籤/搜索