Am I using too much jQuery? When am I crossing the line?

后端 未结 8 2368
孤城傲影
孤城傲影 2020-11-27 06:46

Lately I found myself using jQuery and JavaScript a lot, often to do the same things that I did before using CSS.

For example, I alternate table rows color or create

8条回答
  •  没有蜡笔的小新
    2020-11-27 07:17

    If it's something that is easily do-able in CSS, then ditch jQuery and do it in CSS. That way you don't have to depend on javascript execution for the look/feel of your application.

提交回复
热议问题