Best practice for CSS class naming for use with jQuery selectors

前端 未结 6 2076
北恋
北恋 2020-12-28 15:55

While building a Javascript-heavy web application, what is the best practice for naming CSS classes to keep the Javascript code and CSS stylesheets clean and the UI structur

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 16:34

    It really depends on the structure and size of your page.

    Some situations will perform better using Option 1, some will be better with Option 2.

    I usually go with "Whatever Is Best For This Specific Scenario"

提交回复
热议问题