Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
不确定我正确理解了这个问题,但是默认情况下,复选框值似乎是字符串,这就是为什么它是白色的。
要将其转到布尔值,您可以创建一个变量,然后检查值是否为字符串
true
,分配为变量,否则分配false。或速记
Not sure I understand the question correctly but it seems that checkbox value will by default be a string, that is why it is white.
To turn it to boolean you can create a variable and then check if values is the string
true
, the assign true to the variable, otherwise assign false.or shorthand