Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Variables 手写笔。如何在哈希名称中使用变量_Variables_Hash_Stylus - Fatal编程技术网

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
谢谢您的帮助!它帮助了我