Why is using onClick() in HTML a bad practice?

前端 未结 10 2195
我寻月下人不归
我寻月下人不归 2020-11-21 05:07

I have heard many times that using JavaScript events, such as onClick(), in HTML is a bad practice, because it\'s not good for semantics. I would like to know w

10条回答
提交回复
热议问题