Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试制作一个以我的类名为前缀的 sass 函数,例如:
pf(.test) { display: block; }
所需的输出:
.prefix-test { display: block; }
我试过的:
@function pf($class) { @return .#{$brand-prefix}-$class; }
但我得到一个错误
@return 第 14 行第 9 列之后的错误读取值。
有什么建议么?