How to add click event to an element?

前端 未结 4 764

I would like to add a click event in plain JavaScript (without using jQuery) to an element like this, so I don\'t have an id but a class:



        
4条回答
  •  囚心锁ツ
    2020-11-27 08:49

    You simple use like below

    Yummy
    
    
    

提交回复
热议问题