[英]Jade error putting variable as label
I got an error of jade input is self closing and should not have content . 我得到一个错误,玉输入是自动关闭,应该没有内容 。
input(type='radio') This discount has
-if type == 1
| #{value} %
-else
| RM #{value}
Any idea? 任何想法?
You cant put content insade input. 您不能将内容插入输入。 This html is invalid
此html无效
<input type="radio">This discount has 0</input>
Probably you want 可能你想要
label
input(type='radio')
| This discount has
- if (type == 1)
| #{value} %
- else
| RM #{value}
Or 要么
input(type='radio')
span This discount has
- if (type == 1)
| #{value} %
- else
| RM #{value}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.