Your if
statement is not comparing values, but is instead assigning a value.(您的if
语句不是比较值,而是分配一个值。)
b = 1
assigns 1
to the variable b
.(b = 1
受让人1
到变量b
。) Instead, you'll want to use a comparison operator if (b == 1)
.(相反, if (b == 1)
需要使用比较运算符。)
Secondly, the hidden
should be wrapped in quotes.(其次, hidden
应用引号引起来。) Currently you are assigning hidden
to the visibility
property, but hidden
does not appear to be a variable.(当前,您正在将hidden
分配给visibility
属性,但是hidden
似乎不是变量。) Instead, you'll do visibility = 'hidden'
.(取而代之的是,您将可以看到visibility = 'hidden'
。) 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…