Better to use a click event on body to target all p's or individually all p's?

前端 未结 0 1547
你的背包
你的背包 2020-12-16 09:23

I was about to iterate through all p elements to add a listener to them but then thought about just adding one to the body and catch it bubble down for p<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题