代码结构

Overly Nested BEM: "A complex UI component with a long, convoluted BEM class name like 'block__element--modifier--sub-modifier', visually showing the problem of excessive nesting in BEM naming conventions. Consider a shopping cart item, with too many modifiers."

BEM命名的隐藏陷阱:避坑指南,帮你少走弯路

webmaster

BEM(Block Element Mo ...