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.
私はこのようなものをミックスインに渡そうとしています
.myMixin(Pdcbs/sjdhc+jdjhdf);
これはコンパイル時に失敗し、構文エラーが発生します
文字列を引用符で囲んでみましたが、出力でパラメータが次のように出力されます。
background: ...@{paramName}
私は〜"stringhere"を試しました...私はこれを何時間も続けています正しい方向に私を向けてください、ありがとう
あなたが出力として何を求めているのかはよくわかりませんが、これは次のとおりです。
.mixin(@paramName) { background: ~"...@{paramName}"; } .mixin("Pdcbs/sjdhc+jdjhdf");
私のためにこれを生成します:
background: ...Pdcbs/sjdhc+jdjhdf;