每个语句中的元素声明输入名称 jade
element from each statement to declare input name jade
这是我尝试使用的代码 运行:
ul
each account in accountlist
li(class='no-bullets'): form(id='get-account-info'): input(type='hidden', name= account): button(class='btn', action='submit')= account
在我嵌套输入元素之前它工作正常。
然后它抛出了这个错误:
Error: input is self closing and should not have content.
我是否不允许使用数组中的元素来通知元素的属性,使用数组循环中的元素两次,或者我在倾诉时搞砸了一些语法 up/missed文档和每个堆栈溢出问题以找到解决方法。
输入元素在 HTML 中不能有子元素。
试试这个:
ul
each account in accountlist
li(class='no-bullets'): form(id='get-account-info'): input(type='hidden', name= account)
button(class='btn', action='submit')= account
此外,您的表单 ID 必须是唯一的。
这是我尝试使用的代码 运行:
ul
each account in accountlist
li(class='no-bullets'): form(id='get-account-info'): input(type='hidden', name= account): button(class='btn', action='submit')= account
在我嵌套输入元素之前它工作正常。
然后它抛出了这个错误:
Error: input is self closing and should not have content.
我是否不允许使用数组中的元素来通知元素的属性,使用数组循环中的元素两次,或者我在倾诉时搞砸了一些语法 up/missed文档和每个堆栈溢出问题以找到解决方法。
输入元素在 HTML 中不能有子元素。
试试这个:
ul
each account in accountlist
li(class='no-bullets'): form(id='get-account-info'): input(type='hidden', name= account)
button(class='btn', action='submit')= account
此外,您的表单 ID 必须是唯一的。