Variables 手写笔。如何在哈希名称中使用变量
作为哈希名称中的替代变量Variables 手写笔。如何在哈希名称中使用变量,variables,hash,stylus,Variables,Hash,Stylus,作为哈希名称中的替代变量 some_hashes = { some_hashes_value: some_variable } some_mixin(some_argument, some_argument_2) margin: {some_argument}[some_hashes_value] + some_argument_2 // false margin: {some_argument}.some_hashes_value + some_argument_2
some_hashes = {
some_hashes_value: some_variable
}
some_mixin(some_argument, some_argument_2)
margin: {some_argument}[some_hashes_value] + some_argument_2 // false
margin: {some_argument}.some_hashes_value + some_argument_2 // false
.foo
some_mixin 10
应为“:”,got“}”在这种情况下可以使用bif。
foo={ro:10px}some_argument=foo some_argument2=ro。foo margin:lookup(some_argument++.ro')//false。无法执行{“ro”:(10px)}+'.'margin:define(some_argument+'..,'ro')//false。无法执行{“ro”:(10px)}+'.'margin:operate('.',some_参数,some_参数2)//work
谢谢您的帮助!它帮助了我