Jquery onclick on div

前端 未结 6 1501
被撕碎了的回忆
被撕碎了的回忆 2021-01-01 09:04

I have a simple question. The following code works for all the tags:

$(\'*\').click(function(e) {  
    alert(1);
});

But, when I try this

6条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 09:15

    js

    
    
    
    
    

    html

    div!

提交回复
热议问题