JavaScript & Events - Best Practice

后端 未结 4 933
星月不相逢
星月不相逢 2020-12-19 11:17

I once read that the following coding technique is considered bad:

text link
<         


        
4条回答
  •  -上瘾入骨i
    2020-12-19 11:59

    The best approach is called unobtrusive JavaScript and it basically means the separation of behaviour (JS) from structure (HTML), similar to how CSS is a separation of presentation from structure and also for the same reasons.

提交回复
热议问题