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.
我正在尝试将这样的东西传递给mixin
.myMixin(Pdcbs/sjdhc+jdjhdf);
编译时失败,语法错误
我尝试将字符串用引号括起来,但在输出中我看到我的参数输出如下
background: ...@{paramName}
我试过〜“stringhere”......我已经做了几个小时了请指出正确的方向,谢谢
我不太确定你想要输出什么,但是这个:
.mixin(@paramName) { background: ~"...@{paramName}"; } .mixin("Pdcbs/sjdhc+jdjhdf");
为我制作这个:
background: ...Pdcbs/sjdhc+jdjhdf;