我试图使用编译的玉器将chekcboxes输入放在我的html文件上,它呈现实际的复选框但不是文本,即
p.confirm
input(type="checkbox", name="agree")
| I agree to the Terms & Conditions of this Company <br />
input(type="checkbox", name="subscribe")
| Tick to recieve future communication from Company
Run Code Online (Sandbox Code Playgroud)
我试过玉文档,但没有任何反应,谢谢
gl0*_*l03 23
我不确定接受的答案是如何起作用的,因为如果没有转义,Jade会将文本解释为标签.
这两个都可以改为:
p.confirm
label
input(type="checkbox", name="agree")
| I agree to the Terms & Conditions of this Company
br
label
input(type="checkbox", name="subscribe")
= " Tick to recieve future communication from Company"
Run Code Online (Sandbox Code Playgroud)
需要标签才能使文本可点击.
输入标签没有子标签。
p.confirm
input(type="checkbox", name="agree")
I agree to the Terms & Conditions of this Company
br
input(type="checkbox", name="subscribe")
Tick to recieve future communication from Company
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9659 次 |
| 最近记录: |